Update visualisation demo

This commit is contained in:
Bastian 2020-01-16 13:51:42 +01:00
parent 501b16dd08
commit 89a8491241
1 changed files with 34 additions and 16 deletions

View File

@ -1,32 +1,50 @@
# Visualize git
https://johanneslerch.github.io/visualizing-git/
## commands
pres()
### Adding commits
git commit -m "message 1" <br/>
git commit -m "message 2" <br/>
git commit -m "message 3" <br/>
git commit
### Creating a branch
git branch feature <br/>
git commit -m "message 4" <br/>
git checkout feature <br/>
git commit -m "message 5" <br/>
git commit -m "message 6" <br/>
git commit -m "message 7" <br/>
git commit -m "message 8" <br/>
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 <br/>
git merge feature <br/>
git checkout master
git merge feature
git merge feature2
### Delete unused branches
git delete feature
git delete feature2
undo
### Rebase with master
git checkout master <br/>
git rebase feature <br/>
git checkout feature <br/>
git merge master <br/>
git checkout master
git rebase feature
git checkout feature
git merge master