630 B
630 B
Visualize git
https://johanneslerch.github.io/visualizing-git/
commands
pres()
Adding commits
git commit
Creating a branch
git branch feature git commit git checkout feature git commit git commit git commit git checkout master git branch feature2 git commit git checkout feature2 git commit git commit git commit git commit git checkout master
Merging with master
git checkout master git merge feature git merge feature2
Delete unused branches
git branch -d feature git branch -d feature2
undo
Rebase with master
git checkout master git rebase feature git checkout feature git merge master