[关闭]
@c-Ku 2018-03-31T06:49:32.000000Z 字数 7820 阅读 619

一套git教学。。。

Git


  1. kr-store git:(6ml-update-0331) git checkout 6ml-update-0330
  2. error: Your local changes to the following files would be overwritten by checkout:
  3. src/index.tsx
  4. Please commit your changes or stash them before you switch branches.
  5. Aborting
  6. kr-store git:(6ml-update-0331)
  7. kr-store git:(6ml-update-0331)
  8. kr-store git:(6ml-update-0331)
  9. kr-store git:(6ml-update-0331) glg
  10. kr-store git:(6ml-update-0331) gst
  11. On branch 6ml-update-0331
  12. Changes not staged for commit:
  13. (use "git add <file>..." to update what will be committed)
  14. (use "git checkout -- <file>..." to discard changes in working directory)
  15. modified: src/index.tsx
  16. no changes added to commit (use "git add" and/or "git commit -a")
  17. kr-store git:(6ml-update-0331) ga .
  18. g%➜ kr-store git:(6ml-update-0331) gst
  19. On branch 6ml-update-0331
  20. Changes to be committed:
  21. (use "git reset HEAD <file>..." to unstage)
  22. modified: src/index.tsx
  23. kr-store git:(6ml-update-0331) gcmsg 'stash'
  24. [6ml-update-0331 d9d4158] stash
  25. 1 file changed, 1 insertion(+), 1 deletion(-)
  26. kr-store git:(6ml-update-0331) gco
  27. 6ml-origin-version 6ml-update-0329-02 FETCH_HEAD master origin/6ml-update-0329 origin/HEAD
  28. 6ml-update-0324 6ml-update-0330 HEAD origin/6ml-origin-version origin/6ml-update-0329-02 origin/master
  29. 6ml-update-0329 6ml-update-0331 ORIG_HEAD origin/6ml-update-0324 origin/6ml-update-0330
  30. d9d4158 -- [HEAD] stash (10 seconds ago)
  31. 90dd018 -- [HEAD^] orders (33 minutes ago)
  32. 69bb71b -- [HEAD^^] order detail (13 hours ago)
  33. 66b7b78 -- [HEAD~3] implement Image loader (15 hours ago)
  34. efd4f1c -- [HEAD~4] address page (22 hours ago)
  35. 084758a -- [HEAD~5] Address page (27 hours ago)
  36. ce84fc1 -- [HEAD~6] user info (2 days ago)
  37. 62b4394 -- [HEAD~7] orders page (2 days ago)
  38. eb7eae3 -- [HEAD~8] add project snippets (2 days ago)
  39. d300ec5 -- [HEAD~9] use font icon (2 days ago)
  40. 88dbf02 -- [HEAD~10] Merge branch 'master' of github.com:xreception/ecnova-store-mobile (2 days ago)
  41. 93c942a -- [93c942a] Merge pull request #3 from xreception/6ml-update-0329-02 (2 days ago)
  42. c33de42 -- [HEAD~11] merge master (2 days ago)
  43. fc6a044 -- [fc6a044] update (2 days ago)
  44. 6e34422 -- [HEAD~12] cart item (2 days ago)
  45. 969a7e7 -- [969a7e7] update (2 days ago)
  46. 65b8e23 -- [65b8e23] little update (2 days ago)
  47. e6c1a14 -- [e6c1a14] styles revise (2 days ago)
  48. 06dc654 -- [06dc654] Merge pull request #2 from xreception/6ml-update-0329 (2 days ago)
  49. 239391d -- [239391d] delete TODO comments (2 days ago)
  50. kr-store git:(6ml-update-0331) gco 6ml-update-0330
  51. Switched to branch '6ml-update-0330'
  52. Your branch is up to date with 'origin/6ml-update-0330'.
  53. kr-store git:(6ml-update-0330)
  54. kr-store git:(6ml-update-0330)
  55. kr-store git:(6ml-update-0330) glog
  56. kr-store git:(6ml-update-0330) git reset 90dd018
  57. Unstaged changes after reset:
  58. M package-lock.json
  59. M src/components/Button/button.css
  60. M src/components/Button/button.css.d.ts
  61. M src/components/Button/button.tsx
  62. M src/components/list/list.css
  63. M src/components/list/list.css.d.ts
  64. M src/components/list/list.tsx
  65. M src/index.tsx
  66. kr-store git:(6ml-update-0330) glog
  67. kr-store git:(6ml-update-0330) gst
  68. On branch 6ml-update-0330
  69. Your branch is behind 'origin/6ml-update-0330' by 8 commits, and can be fast-forwarded.
  70. (use "git pull" to update your local branch)
  71. Changes not staged for commit:
  72. (use "git add <file>..." to update what will be committed)
  73. (use "git checkout -- <file>..." to discard changes in working directory)
  74. modified: package-lock.json
  75. modified: src/components/Button/button.css
  76. modified: src/components/Button/button.css.d.ts
  77. modified: src/components/Button/button.tsx
  78. modified: src/components/list/list.css
  79. modified: src/components/list/list.css.d.ts
  80. modified: src/components/list/list.tsx
  81. modified: src/index.tsx
  82. Untracked files:
  83. (use "git add <file>..." to include in what will be committed)
  84. src/screens/mobile-binding/
  85. src/screens/mobile-edit/
  86. no changes added to commit (use "git add" and/or "git commit -a")
  87. kr-store git:(6ml-update-0330)
  88. kr-store git:(6ml-update-0330)
  89. kr-store git:(6ml-update-0330)
  90. kr-store git:(6ml-update-0330) gst
  91. On branch 6ml-update-0330
  92. Your branch and 'origin/6ml-update-0330' have diverged,
  93. and have 1 and 8 different commits each, respectively.
  94. (use "git pull" to merge the remote branch into yours)
  95. Changes not staged for commit:
  96. (use "git add <file>..." to update what will be committed)
  97. (use "git checkout -- <file>..." to discard changes in working directory)
  98. modified: package-lock.json
  99. modified: src/components/list/list.css
  100. modified: src/components/list/list.css.d.ts
  101. modified: src/components/list/list.tsx
  102. modified: src/index.tsx
  103. Untracked files:
  104. (use "git add <file>..." to include in what will be committed)
  105. src/screens/mobile-binding/
  106. src/screens/mobile-edit/
  107. no changes added to commit (use "git add" and/or "git commit -a")
  108. kr-store git:(6ml-update-0330) ga .
  109. kr-store git:(6ml-update-0330) gst
  110. On branch 6ml-update-0330
  111. Your branch and 'origin/6ml-update-0330' have diverged,
  112. and have 1 and 8 different commits each, respectively.
  113. (use "git pull" to merge the remote branch into yours)
  114. Changes to be committed:
  115. (use "git reset HEAD <file>..." to unstage)
  116. modified: package-lock.json
  117. modified: src/components/list/list.css
  118. modified: src/components/list/list.css.d.ts
  119. modified: src/components/list/list.tsx
  120. modified: src/index.tsx
  121. new file: src/screens/mobile-binding/defs.ts
  122. new file: src/screens/mobile-binding/form.tsx
  123. new file: src/screens/mobile-binding/index.ts
  124. new file: src/screens/mobile-binding/mobile-binding.css
  125. new file: src/screens/mobile-binding/mobile-binding.css.d.ts
  126. new file: src/screens/mobile-binding/mobile-binding.tsx
  127. new file: src/screens/mobile-edit/defs.ts
  128. new file: src/screens/mobile-edit/form.tsx
  129. new file: src/screens/mobile-edit/index.ts
  130. new file: src/screens/mobile-edit/mobile-edit.css
  131. new file: src/screens/mobile-edit/mobile-edit.css.d.ts
  132. new file: src/screens/mobile-edit/mobile-edit.tsx
  133. kr-store git:(6ml-update-0330) gcmsg 'UserInfo page and mobile binding'
  134. [6ml-update-0330 06f1490] UserInfo page and mobile binding
  135. 17 files changed, 875 insertions(+), 543 deletions(-)
  136. create mode 100644 src/screens/mobile-binding/defs.ts
  137. create mode 100644 src/screens/mobile-binding/form.tsx
  138. create mode 100644 src/screens/mobile-binding/index.ts
  139. create mode 100644 src/screens/mobile-binding/mobile-binding.css
  140. create mode 100644 src/screens/mobile-binding/mobile-binding.css.d.ts
  141. create mode 100644 src/screens/mobile-binding/mobile-binding.tsx
  142. create mode 100644 src/screens/mobile-edit/defs.ts
  143. create mode 100644 src/screens/mobile-edit/form.tsx
  144. create mode 100644 src/screens/mobile-edit/index.ts
  145. create mode 100644 src/screens/mobile-edit/mobile-edit.css
  146. create mode 100644 src/screens/mobile-edit/mobile-edit.css.d.ts
  147. create mode 100644 src/screens/mobile-edit/mobile-edit.tsx
  148. kr-store git:(6ml-update-0330) git push origin 6ml-update-0330
  149. ^C
  150. kr-store git:(6ml-update-0330) git push -f origin 6ml-update-0330
  151. Counting objects: 33, done.
  152. Delta compression using up to 4 threads.
  153. Compressing objects: 100% (31/31), done.
  154. Writing objects: 100% (33/33), 11.58 KiB | 697.00 KiB/s, done.
  155. Total 33 (delta 17), reused 0 (delta 0)
  156. remote: Resolving deltas: 100% (17/17), completed with 12 local objects.
  157. To github.com:xreception/ecnova-store-mobile.git
  158. + 7c3f39f...06f1490 6ml-update-0330 -> 6ml-update-0330 (forced update)
  159. kr-store git:(6ml-update-0330)
  160. kr-store git:(6ml-update-0330)
  161. kr-store git:(6ml-update-0330)
  162. kr-store git:(6ml-update-0330) gco master
  163. Switched to branch 'master'
  164. Your branch is up to date with 'origin/master'.
  165. kr-store git:(master) gl
  166. Already up to date.
  167. kr-store git:(master) git cherry-pick cb13620cfd83de5bbdd03dfb3fb52ef6dc58a04a
  168. [master 1470ffc] add rect button style
  169. Date: Sat Mar 31 14:42:17 2018 +0800
  170. 3 files changed, 20 insertions(+), 4 deletions(-)
  171. kr-store git:(master) glog
  172. kr-store git:(master)
  173. kr-store git:(master)
  174. kr-store git:(master)
  175. kr-store git:(master) gco 6ml-update-0331
  176. Switched to branch '6ml-update-0331'
  177. kr-store git:(6ml-update-0331) glg
  178. kr-store git:(6ml-update-0331) git rebse master
  179. git: 'rebse' is not a git command. See 'git --help'.
  180. The most similar command is
  181. rebase
  182. kr-store git:(6ml-update-0331) git rebase master
  183. First, rewinding head to replay your work on top of it...
  184. Applying: stash
  185. kr-store git:(6ml-update-0331) glg
  186. kr-store git:(6ml-update-0331) glog
  187. kr-store git:(6ml-update-0331) git reset HEAD^1
  188. Unstaged changes after reset:
  189. M src/index.tsx
  190. kr-store git:(6ml-update-0331) glog
  191. kr-store git:(6ml-update-0331) gst
  192. On branch 6ml-update-0331
  193. Changes not staged for commit:
  194. (use "git add <file>..." to update what will be committed)
  195. (use "git checkout -- <file>..." to discard changes in working directory)
  196. modified: src/index.tsx
  197. no changes added to commit (use "git add" and/or "git commit -a")
  198. kr-store git:(6ml-update-0331)
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注