GIT TIPS & TRICKS
Create your branch:
git checkout -b your_branch
Push to remote:
git push -u <remote-name> <branch-name>
e.g.
git push -u origin new-feature
e.g.
git rebase -i HEAD~5
- Reorder by reordering the lines in the editor
- Squash commmits by squashing them on to the commit before
- Cancel by removing all the commit lines
Add only some modifications of a file or changeset.
git add -p [file]