Guest User

Untitled

a guest
Oct 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.64 KB | None | 0 0
  1. ➜ code
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. ➜ code git clone https://github.com/openebs/CITF.git
  10. Cloning into 'CITF'...
  11. remote: Enumerating objects: 25, done.
  12. remote: Counting objects: 100% (25/25), done.
  13. remote: Compressing objects: 100% (15/15), done.
  14. remote: Total 6957 (delta 10), reused 22 (delta 10), pack-reused 6932
  15. Receiving objects: 100% (6957/6957), 8.03 MiB | 358.00 KiB/s, done.
  16. Resolving deltas: 100% (3579/3579), done.
  17. ➜ code git remote add devel git@github.com:sayanchowdhury/CITF.git
  18. ➜ code cd CITF
  19. ➜ CITF git:(master) git remote add devel https://github.com/sayanchowdhury/CITF.git
  20. ➜ CITF git:(master) git remote -v
  21. devel https://github.com/sayanchowdhury/CITF.git (fetch)
  22. devel https://github.com/sayanchowdhury/CITF.git (push)
  23. origin https://github.com/openebs/CITF.git (fetch)
  24. origin https://github.com/openebs/CITF.git (push)
  25. ➜ CITF git:(master) git checkout -b fix-readme-changes
  26. Switched to a new branch 'fix-readme-changes'
  27. ➜ CITF git:(fix-readme-changes) vim README.md
  28. ➜ CITF git:(fix-readme-changes) git checkout master
  29. Switched to branch 'master'
  30. Your branch is up to date with 'origin/master'.
  31. ➜ CITF git:(master) git branch
  32. ➜ CITF git:(master) git log
  33. ➜ CITF git:(master) git branch
  34. ➜ CITF git:(master) git checkout fix-readme-changes
  35. Switched to branch 'fix-readme-changes'
  36. ➜ CITF git:(fix-readme-changes) git checkout -b fix-readme-changes
  37. fatal: A branch named 'fix-readme-changes' already exists.
  38. ➜ CITF git:(fix-readme-changes) vim README.md
  39. ➜ CITF git:(fix-readme-changes) ✗ git diff
  40. ➜ CITF git:(fix-readme-changes) ✗ vim README.md
  41. ➜ CITF git:(fix-readme-changes) ✗ git diff
  42. ➜ CITF git:(fix-readme-changes) ✗ git add README.md
  43. ➜ CITF git:(fix-readme-changes) ✗ git diff
  44. ➜ CITF git:(fix-readme-changes) ✗ git diff --staged
  45. ➜ CITF git:(fix-readme-changes) ✗ git commit -m "Remove the build status line from README"
  46. [fix-readme-changes 068ce49] Remove the build status line from README
  47. 1 file changed, 3 insertions(+), 1 deletion(-)
  48. ➜ CITF git:(fix-readme-changes) git log
  49. ➜ CITF git:(fix-readme-changes) git checkout master
  50. Switched to branch 'master'
  51. Your branch is up to date with 'origin/master'.
  52. ➜ CITF git:(master) git log
  53. ➜ CITF git:(master) git checkout fix-readme-changes
  54. Switched to branch 'fix-readme-changes'
  55. ➜ CITF git:(fix-readme-changes) git log
  56. ➜ CITF git:(fix-readme-changes) vim Makefile
  57. ➜ CITF git:(fix-readme-changes) ✗ vim README.md
  58. ➜ CITF git:(fix-readme-changes) ✗ git diff
  59. ➜ CITF git:(fix-readme-changes) ✗ git status
  60. On branch fix-readme-changes
  61. Changes not staged for commit:
  62. (use "git add <file>..." to update what will be committed)
  63. (use "git checkout -- <file>..." to discard changes in working directory)
  64.  
  65. modified: Makefile
  66. modified: README.md
  67.  
  68. no changes added to commit (use "git add" and/or "git commit -a")
  69. ➜ CITF git:(fix-readme-changes) ✗ git add Makefile
  70. ➜ CITF git:(fix-readme-changes) ✗ git diff
  71. ➜ CITF git:(fix-readme-changes) ✗ git diff --staged
  72. ➜ CITF git:(fix-readme-changes) ✗ git status
  73. On branch fix-readme-changes
  74. Changes to be committed:
  75. (use "git reset HEAD <file>..." to unstage)
  76.  
  77. modified: Makefile
  78.  
  79. Changes not staged for commit:
  80. (use "git add <file>..." to update what will be committed)
  81. (use "git checkout -- <file>..." to discard changes in working directory)
  82.  
  83. modified: README.md
  84.  
  85. ➜ CITF git:(fix-readme-changes) ✗ git commit
  86. Aborting commit due to empty commit message.
  87. ➜ CITF git:(fix-readme-changes) ✗ git commit -m "Remove vet from Makefile"
  88. [fix-readme-changes 79292dc] Remove vet from Makefile
  89. 1 file changed, 3 deletions(-)
  90. ➜ CITF git:(fix-readme-changes) ✗ git status
  91. On branch fix-readme-changes
  92. Changes not staged for commit:
  93. (use "git add <file>..." to update what will be committed)
  94. (use "git checkout -- <file>..." to discard changes in working directory)
  95.  
  96. modified: README.md
  97.  
  98. no changes added to commit (use "git add" and/or "git commit -a")
  99. ➜ CITF git:(fix-readme-changes) ✗ git add README.md
  100. ➜ CITF git:(fix-readme-changes) ✗ git status
  101. On branch fix-readme-changes
  102. Changes to be committed:
  103. (use "git reset HEAD <file>..." to unstage)
  104.  
  105. modified: README.md
  106.  
  107. ➜ CITF git:(fix-readme-changes) ✗ git diff --staged
  108. ➜ CITF git:(fix-readme-changes) ✗ git commit -m "Remove another build line from README.md"
  109. [fix-readme-changes e89ee48] Remove another build line from README.md
  110. 1 file changed, 3 deletions(-)
  111. ➜ CITF git:(fix-readme-changes) git log
  112. ➜ CITF git:(fix-readme-changes) git branch
  113. ➜ CITF git:(fix-readme-changes) git remote -v
  114. devel https://github.com/sayanchowdhury/CITF.git (fetch)
  115. devel https://github.com/sayanchowdhury/CITF.git (push)
  116. origin https://github.com/openebs/CITF.git (fetch)
  117. origin https://github.com/openebs/CITF.git (push)
  118. ➜ CITF git:(fix-readme-changes) git remote set-url devel git@github.com:sayanchowdhury/CITF.git
  119. ➜ CITF git:(fix-readme-changes)
  120. ➜ CITF git:(fix-readme-changes) git remote set-url origin git@github.com:openebs/CITF.git
  121. ➜ CITF git:(fix-readme-changes) git remote set-url origin git@github.com:openebs/CITF.git
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145. ➜ CITF git:(fix-readme-changes) git remote -v
  146. devel git@github.com:sayanchowdhury/CITF.git (fetch)
  147. devel git@github.com:sayanchowdhury/CITF.git (push)
  148. origin git@github.com:openebs/CITF.git (fetch)
  149. origin git@github.com:openebs/CITF.git (push)
  150. ➜ CITF git:(fix-readme-changes)
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. ➜ CITF git:(fix-readme-changes) git push origin fix-readme-changes
  171. ERROR: Permission to openebs/CITF.git denied to sayanchowdhury.
  172. fatal: Could not read from remote repository.
  173.  
  174. Please make sure you have the correct access rights
  175. and the repository exists.
  176. ➜ CITF git:(fix-readme-changes) git push devel fix-readme-changes
  177. Counting objects: 79, done.
  178. Delta compression using up to 4 threads.
  179. Compressing objects: 100% (50/50), done.
  180. Writing objects: 100% (79/79), 12.33 KiB | 12.33 MiB/s, done.
  181. Total 79 (delta 43), reused 62 (delta 29)
  182. remote: Resolving deltas: 100% (43/43), completed with 5 local objects.
  183. remote:
  184. remote: Create a pull request for 'fix-readme-changes' on GitHub by visiting:
  185. remote: https://github.com/sayanchowdhury/CITF/pull/new/fix-readme-changes
  186. remote:
  187. To github.com:sayanchowdhury/CITF.git
  188. * [new branch] fix-readme-changes -> fix-readme-changes
  189. ➜ CITF git:(fix-readme-changes) git pull --rebase origin master
  190. ➜ CITF git:(fix-readme-changes) git checkout master
  191. Switched to branch 'master'
  192. Your branch is up to date with 'origin/master'.
  193. ➜ CITF git:(master) git pull --rebase origin master
  194. remote: Enumerating objects: 5, done.
  195. remote: Counting objects: 100% (5/5), done.
  196. remote: Compressing objects: 100% (5/5), done.
  197. remote: Total 5 (delta 0), reused 4 (delta 0), pack-reused 0
  198. Unpacking objects: 100% (5/5), done.
  199. From github.com:openebs/CITF
  200. * branch master -> FETCH_HEAD
  201. 937eecc..457c09f master -> origin/master
  202. Updating 937eecc..457c09f
  203. Fast-forward
  204. utils/k8s/k8s.go | 19 +++++++++++++++++++
  205. 1 file changed, 19 insertions(+)
  206. Current branch master is up to date.
  207. ➜ CITF git:(master) git checkout fix-readme-changes
  208. Switched to branch 'fix-readme-changes'
  209. ➜ CITF git:(fix-readme-changes) git rebase -i master
  210. Successfully rebased and updated refs/heads/fix-readme-changes.
  211. ➜ CITF git:(fix-readme-changes) git log
  212. ➜ CITF git:(fix-readme-changes) git push devel fix-readme-changes
  213. To github.com:sayanchowdhury/CITF.git
  214. ! [rejected] fix-readme-changes -> fix-readme-changes (non-fast-forward)
  215. error: failed to push some refs to 'git@github.com:sayanchowdhury/CITF.git'
  216. hint: Updates were rejected because the tip of your current branch is behind
  217. hint: its remote counterpart. Integrate the remote changes (e.g.
  218. hint: 'git pull ...') before pushing again.
  219. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  220. ➜ CITF git:(fix-readme-changes) git push -f devel fix-readme-changes
  221. Counting objects: 14, done.
  222. Delta compression using up to 4 threads.
  223. Compressing objects: 100% (14/14), done.
  224. Writing objects: 100% (14/14), 1.62 KiB | 1.62 MiB/s, done.
  225. Total 14 (delta 9), reused 0 (delta 0)
  226. remote: Resolving deltas: 100% (9/9), completed with 5 local objects.
  227. To github.com:sayanchowdhury/CITF.git
  228. + e89ee48...611b82c fix-readme-changes -> fix-readme-changes (forced update)
  229. ➜ CITF git:(fix-readme-changes) git relog
  230. git: 'relog' is not a git command. See 'git --help'.
  231.  
  232. The most similar command is
  233. reflog
  234. ➜ CITF git:(fix-readme-changes) git reflog
  235. ➜ CITF git:(fix-readme-changes) git remote -v
  236. devel git@github.com:sayanchowdhury/CITF.git (fetch)
  237. devel git@github.com:sayanchowdhury/CITF.git (push)
  238. origin git@github.com:openebs/CITF.git (fetch)
  239. origin git@github.com:openebs/CITF.git (push)
  240. ➜ CITF git:(fix-readme-changes)
Add Comment
Please, Sign In to add comment