This Gist contains all the useful commands for Git
Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.
If you are a developer and want to keep every version of your code/project (which you would most certainly want to), a Version Control System (VCS) is a very wise thing to use.
Git Commands
This Gist contains all the useful commands for Git
Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.
If you are a developer and want to keep every version of your code/project (which you would most certainly want to), a Version Control System (VCS) is a very wise thing to use.
Commands
Set global username and email for Git (Locally).
Initialise an empty Git Repository
Clone an existing Git Repository
Add file/stage to git
Add all the files to git
Commit all the staged files to git
Restore the file from being modified to Tracked
Show the status of your Git respository
Show the branches of your git repository
Checkout to a new branch
Checkout to an existing branch
Remove a branch from Git
Show remote origin URL
Add remote origin URL
Remove remote origin URL
Fetch all the remote branches
Push your local changes to remote branch
Pull your remote changes to local branch
Check you git commits and logs
Happy Learning!