Update visualisation demo

This commit is contained in:
Bastian 2020-01-16 13:51:42 +01:00
parent 501b16dd08
commit 89a8491241

View File

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