forked from Workshops/How-To-Git-Started
Add branch/merge/rebase visuals
This commit is contained in:
parent
19c6a020bf
commit
a088b0de6c
@ -2,8 +2,29 @@
|
||||
|
||||
## commands
|
||||
|
||||
git commit -m "message 1"
|
||||
git commit -m "message 2"
|
||||
git commit -m "message 3"
|
||||
### 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
|
||||
git merge feature
|
||||
|
||||
undo
|
||||
|
||||
### Rebase with master
|
||||
git checkout master
|
||||
git rebase feature
|
||||
git checkout feature
|
||||
git merge
|
||||
|
Loading…
Reference in New Issue
Block a user