Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ git branch
- * master
- $ cat > test
- 1
- 2
- 3
- 4
- 5
- ^D
- $ git commit -am first
- $ git branch feature
- $ cat > test
- 1
- 2
- 3
- 4
- 5
- 6
- ^D
- $ git commit -am second
- $ git checkout feature
- $ cat > test
- 1
- 3
- 5
- ^D
- $ git commit -am third
- $ git checkout master
- $ cat > test
- 1
- 2
- 3
- 4
- 5
- 7
- ^D
- $ git commit -am fourth
- $ git rebase test
- $ git log --oneline
- fc1cfcc fourth
- 7b74f4c second
- 3b4371d third
- c034a65 first
- $ git show c034a65:test
- 1
- 2
- 3
- 4
- 5
- $ git show 3b4371d:test
- 1
- 2
- 3
- $ git show 7b74f4c:test
- 1
- 3
- 5
- 6
- $ git show fc1cfcc:test
- 1
- 3
- 5
- 7
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement