How-To-Git-Started/visualize-git.md
2020-01-15 16:39:13 +01:00

33 lines
596 B
Markdown

# Visualize git
## commands
pres()
### Adding commits
git commit -m "message 1" <br/>
git commit -m "message 2" <br/>
git commit -m "message 3" <br/>
### 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/>
### Merging with master
git checkout master <br/>
git merge feature <br/>
undo
### Rebase with master
git checkout master <br/>
git rebase feature <br/>
git checkout feature <br/>
git merge master <br/>