-
'git init' -> It createa a .git folder that has all the relevant info to manage the version of our project.
-
'Working Area' -> There can be some files are not currently managed by git which means that changes done or to be done in those files are not managed by git yet. When we do 'git status' and see the untracked files then those are actually called to be in working area.
3.'Staging Area' -> which files are going to be a part of next version that will create . In this area git knows what changes will be done from prev version to next version.
4.'Repository Area' -> This area actually contains the details of all the previous registered version.
-
'git add ' -> moves from working to staged area.
-
'git rm --cache ' -> moves back to working aread from staging area.
-
'Commit' -> It is a particular version of the project.
-
'git commit' -> register staging changes to repository area or commit.
-
'git log' -> list down all the commits of the repo.
-
'git restore --staged ' -> It removes all files changed from staging to working area. This is only works if changes are in our staging area.
-
'git restore ' -> It removes all file changes from the staging area to commited .
-
'' -> If we don't want to commit by using vim editor then we can use command like that : 'git commit -m'
-
'git remote' -> list down all the remote connection names.
-
'Remote Connection' -> It helps to link two git repo for uploading and downloading changes from each
-
'git remote add
-
' git remote rm ' -> this command deletes a remote connection .
-
'git remote rename '.