Advertisement
baksatibi

Untitled

Dec 15th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. $ git branch
  2. * master
  3. $ cat > test
  4. 1
  5. 2
  6. 3
  7. 4
  8. 5
  9. ^D
  10. $ git commit -am first
  11. $ git branch feature
  12. $ cat > test
  13. 1
  14. 2
  15. 3
  16. 4
  17. 5
  18. 6
  19. ^D
  20. $ git commit -am second
  21. $ git checkout feature
  22. $ cat > test
  23. 1
  24. 3
  25. 5
  26. ^D
  27. $ git commit -am third
  28. $ git checkout master
  29. $ cat > test
  30. 1
  31. 2
  32. 3
  33. 4
  34. 5
  35. 7
  36. ^D
  37. $ git commit -am fourth
  38. $ git rebase test
  39. $ git log --oneline
  40. fc1cfcc fourth
  41. 7b74f4c second
  42. 3b4371d third
  43. c034a65 first
  44. $ git show c034a65:test
  45. 1
  46. 2
  47. 3
  48. 4
  49. 5
  50. $ git show 3b4371d:test
  51. 1
  52. 2
  53. 3
  54. $ git show 7b74f4c:test
  55. 1
  56. 3
  57. 5
  58. 6
  59. $ git show fc1cfcc:test
  60. 1
  61. 3
  62. 5
  63. 7
  64. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement