Clone a Repository
- git config –global user.name <your-email-address>
- git config –global user.email <your-email-address>
- Make sure the destination Git Repository folder does not already exist
- git clone https://github.com/…/.git
Sync Repository
- git status
- git add .
- git commit -m “<description>”
- git push -u origin master
View Remote Branches
- git remote -v
- git branch -a -vv
Add, name and fetch a Remote Branch
- git remote add <friendly-name> https://github.com/…/.git
- git fetch <friendly-name>
- git remote -v
Checkout a Branch
- git checkout -b <friendly-name> <repo-to-checkout>/master
- git branch
Cleanup
- git remote -v
- git remote rm <repo-to-remove>
- git branch -d <repo-to-delete>
- git branch -a -v
- git log –graph