This repository has been archived on 2023-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
How-To-Git-Started/visualize-git.md

33 lines
589 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 <br/>