- Repository (remote & local):
- Branch (remote & local)
- checkout, diff, tags and commit
- clone, push and pull
- merge, rebase, apply patch
- [incase of doubt use
git status
] - git clone [email protected]:amitmh/hello-git.git
- [a]
checkout -b branch-name
- [b] do your changes; say in README.md
- [a]
git status
should give you modified file name - [b]
git diff README.md
this will give you changes with respect to master. - [c]
git add README.md
$git commit -am 'add this comment'
$git push --set-upstream origin branch-name
this will upload changes to remote- [a] to merge changes in master raise pull request or
- [b][1]
git checkout master
- [b][2]
git merge feature
- [b][3]
git push