forked from Workshops/How-To-Git-Started
743 B
743 B
How to Git started
Set up git
Set up your git info
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
If you want to save your https credentials run
git config --global credential.helper store
Omit --global to set the identity only in this repository.
Saving changes
unstage by using
use "git reset HEAD <file>..." to unstage
Track remote branch
git checkout --track origin/<branch>
Delete remote branch
git push <remote_name> --delete <branch_name>
git remote prune <remote_name>