Advertisement
Guest User

Untitled

a guest
May 23rd, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. [12:07:18] atc135@niska ~/code.d $ mkdir test
  2. [12:07:22] atc135@niska ~/code.d $ cd test
  3. [12:07:23] atc135@niska ~/code.d/test $ git init
  4. Initialized empty Git repository in /home/atc135/code.d/test/.git/
  5.  
  6.  
  7. [12:07:31] atc135@niska ~/code.d/test $ touch foo
  8. [12:07:56] atc135@niska ~/code.d/test $ touch foo-ssl
  9. [12:08:00] atc135@niska ~/code.d/test $ git add *
  10. [12:08:02] atc135@niska ~/code.d/test $ git commit -m 'add initial files'
  11. [master (root-commit) 57efe3c] add initial files
  12. 0 files changed, 0 insertions(+), 0 deletions(-)
  13. create mode 100644 foo
  14. create mode 100644 foo-ssl
  15.  
  16.  
  17. [12:08:32] atc135@niska ~/code.d/test $ git branch prod
  18. [12:08:36] atc135@niska ~/code.d/test $ git status
  19. # On branch master
  20. nothing to commit (working directory clean)
  21.  
  22.  
  23. [12:08:50] atc135@niska ~/code.d/test $ mkdir bar
  24. [12:09:08] atc135@niska ~/code.d/test $ git mv foo* bar
  25. [12:09:17] atc135@niska ~/code.d/test $ git mv bar foo
  26. [12:09:21] atc135@niska ~/code.d/test $ git status
  27. # On branch master
  28. # Changes to be committed:
  29. # (use "git reset HEAD <file>..." to unstage)
  30. #
  31. # renamed: foo -> foo/foo
  32. # renamed: foo-ssl -> foo/foo-ssl
  33. #
  34.  
  35.  
  36. [12:09:22] atc135@niska ~/code.d/test $ git commit -a -m 'put those files in a subdir'
  37. [master e3fc418] put those files in a subdir
  38. 2 files changed, 0 insertions(+), 0 deletions(-)
  39. rename foo => foo/foo (100%)
  40. rename foo-ssl => foo/foo-ssl (100%)
  41.  
  42.  
  43. [12:10:30] atc135@niska ~/code.d/test $ echo blah > baz
  44. [12:10:33] atc135@niska ~/code.d/test $ git add baz
  45. [12:10:35] atc135@niska ~/code.d/test $ git commit -m 'add baz'
  46. [master bc45aab] add baz
  47. 1 files changed, 1 insertions(+), 0 deletions(-)
  48. create mode 100644 baz
  49.  
  50.  
  51. [12:10:40] atc135@niska ~/code.d/test $ git checkout prod
  52. Switched to branch 'prod'
  53. [12:10:48] atc135@niska ~/code.d/test $ git cherry -v prod master
  54. + e3fc418ca355e0b013f64cc403e9ad6f1e2874ff put those files in a subdir
  55. + bc45aaba80ad88fbbd2dbdcb21ac5b9e6519e632 add baz
  56.  
  57.  
  58. [12:10:55] atc135@niska ~/code.d/test $ git cherry-pick -x bc45aaba80ad88fbbd2dbdcb21ac5b9e6519e632
  59. Automatic cherry-pick failed. After resolving the conflicts,
  60. mark the corrected paths with 'git add <paths>' or 'git rm <paths>'
  61. and commit the result with:
  62.  
  63. git commit -c bc45aaba80ad88fbbd2dbdcb21ac5b9e6519e632
  64.  
  65. [12:11:05] atc135@niska ~/code.d/test $ git status
  66. # On branch prod
  67. # Changes to be committed:
  68. # (use "git reset HEAD <file>..." to unstage)
  69. #
  70. # new file: baz
  71. #
  72. # Unmerged paths:
  73. # (use "git reset HEAD <file>..." to unstage)
  74. # (use "git add/rm <file>..." as appropriate to mark resolution)
  75. #
  76. # added by us: foo
  77. #
  78. # Untracked files:
  79. # (use "git add <file>..." to include in what will be committed)
  80. #
  81. # foo~HEAD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement