Soft_Job 板


LINE

通常把一個功能做完之後,為了保險起見都會先 commit 一下 但是苦惱的是如果是一個功能還沒完成,但是又必須先停止,等下次再繼續做時 這時候就不知道該怎麼在 git message 描述自己還正在想, 或者是說有寫了一些 code 但是不是正式的,只是用來測試的 code ...... 可能是因為自己英文不夠好,所以這個問題有點困擾 大家可以分享一下類似的問題,該怎麼寫 message 來表示上述的情況嗎? 謝謝 --



※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.173.66.240 (臺灣)
※ 文章網址: https://webptt.com/m.aspx?n=bbs/Soft_Job/M.1562105185.A.189.html
1F:推 deray: aaaaasa 07/03 06:35
2F:推 s29940: “突然想存個檔” 07/03 06:36
3F:→ tedwu2001: 如果沒要推出去就寫checkponit need to reset提醒自己 07/03 06:42
4F:→ tedwu2001: 有要推就建個wip分支留commit 07/03 06:43
5F:推 bill0205: 我覺得沒差 commit成本很低 文字敘述概況就好 有時候一 07/03 06:51
6F:→ bill0205: 天commit3次4次 07/03 06:51
7F:推 mozume: WIP ,這個字不是普遍使用的嗎 07/03 07:03
8F:推 giantwinter: XD 07/03 07:07
9F:推 brianhsu: WIP, work in progress。推出去前再 rebase 07/03 07:46
10F:推 jack0204: 切一個branch出去commit就好了 07/03 08:24
11F:推 googoo1102: 完成一個小單一func就可以commit了 07/03 08:30
12F:推 yyc1217: 切branch呀 07/03 08:31
13F:推 gn60311: Stash 07/03 08:31
14F:→ yyc1217: 可以不同功能用不同branch 寫完再rebase到develop去 07/03 08:32
15F:推 vi000246: 看你是做side project還是公司專案 前者我都隨意 07/03 09:02
16F:→ vi000246: 一律用123 後者我會用amend把上個commit蓋掉 07/03 09:03
17F:推 lemon651: 除了會到master之外的commit message基本都不重要吧? 07/03 09:12
18F:→ lemon651: 除非隔很久才繼續開發 07/03 09:12
19F:→ iven00000000: git commit -m "tmp" 07/03 09:26
20F:→ iven00000000: git reset HEAD~ 07/03 09:27
21F:推 EPGo: Stash 07/03 09:28
22F:推 NCKUFatPork: rebase, squash 07/03 09:29
23F:推 hangigi: 嫌太多不好閱讀用rebase -i 整理一下呀 07/03 09:49
24F:推 longlyeagle: wip 07/03 09:52
25F:推 alihue: temp ,要合回去再 sqash 07/03 10:03
26F:推 abc0922001: 開 branch 阿,上廁所 commit 一下,下班 commit 一下 07/03 10:06
27F:→ abc0922001: 最後像前面大大講的 merge squash 就好 07/03 10:07
28F:推 vn509942: -m “昨天誰吃完泡麵沒洗碗” 07/03 10:21
29F:→ marc47: 你可以開另外一個自己的beanch,做完在merge 回去 07/03 10:25
30F:→ marc47: 然後再把自己的branch刪掉 07/03 10:26
31F:推 ian90911: 沒寫完我都stash 07/03 10:50
32F:→ mythnc: 可以翻翻git相關的免費電子書 07/03 10:57
33F:推 sky810684: https://gitbook.tw/chapters/rewrite-history/merge-m 07/03 11:22
34F:→ sky810684: ultiple-commits-to-one-commit.html 07/03 11:22
35F:→ sky810684: 忘了縮… 07/03 11:23
36F:推 oopFoo: https://bit.ly/325S0mw 07/03 11:31
37F:→ oopFoo: 我覺得這個format蠻好的。你可以用"start" keyword. 07/03 11:33
38F:推 thund: 我是用stash啦 07/03 11:56
39F:推 banana13: stash 07/03 12:19
40F:→ banana13: 不然另外開個branch 07/03 12:19
41F:→ banana13: 再cherry pick 進去 07/03 12:20
42F:推 aquarianboy: 除非團隊有規定一定要用英文寫,不然用中文也可以的 07/03 12:27
43F:→ aquarianboy: 重點是清楚就好 07/03 12:27
44F:推 maxqq: 通常該 branch 會有明確的任務名稱 ... 在修改的 code 頁面 07/03 12:39
45F:→ maxqq: 在加註一些註解即可 07/03 12:39
46F:推 yschen25: git commit -m′[Add] 功能 temp′,之後要整理再reset 07/03 13:16
47F:→ yschen25: 就好 07/03 13:16
48F:→ dreamnook: git stash 07/03 13:17
49F:→ dreamnook: 還有一種方式使用git squash把舊紀錄清掉 07/03 13:19
50F:推 ipapple852: git stash - u (順便把untrack的資料存入佔存區 07/03 13:26
51F:推 ku399999: git stash 或是先隨便打 之後再git rebase 07/03 13:33
52F:→ ku399999: 用squash合併commit 07/03 13:34
53F:推 louna30cm: git stash或git diff 做成patch就好啦 07/03 13:37
54F:→ shooter555: test1 test2 test3 最後在soft reset回去 反正local沒 07/03 13:42
55F:→ shooter555: 差 07/03 13:42
56F:→ shooter555: 然後local的branch也開不用錢的 07/03 13:45
57F:推 Arctica: 我都stash 0.0, 不過暫存程式一多就會毛毛的 07/03 13:54
58F:推 max241: stash暫存或開temp branch commit最後rebase回正式branch 07/03 14:59
59F:推 Mtcat: 寫中文啊 就自己看而已擔心啥 07/03 15:22
60F:推 imsmalling95: iam coming 07/03 15:24
61F:推 Dinowchang: I'll be back. 07/03 15:28
62F:推 lantw44: 亂寫就好,等有需要或是有想到要寫什麼的時候再回來改 07/03 15:34
63F:→ askaleroux: Fuck you fb sdk 07/03 16:36
64F:→ DCTmaybe: to be continued 07/03 17:48
65F:推 finn79426: ZA WARUDO!!!! 07/03 18:33
66F:推 max533: git stash 07/03 19:30
67F:→ eatpupu: git stash 07/03 19:37
68F:推 st790702: stash +1 07/03 20:39
69F:推 ernieyang09: feature branch就tmp 下次再git reset mix阿 07/03 21:42
70F:→ ernieyang09: 如果只是切換一下子 stash比較快 07/03 21:42
71F:推 k300plus: 你是不是不知道可以寫中文= = 07/03 22:15
72F:推 CCWck: git commit --amend 07/03 22:34
73F:→ CCWck: git rebase -i 07/03 22:35
74F:推 GGFACE: 你是不是不知道可以寫中文= = 07/04 00:15
75F:推 ccorn: I'll be back笑死我XD 07/04 00:59
76F:推 jammy50605: 切branch 開local也可以啦只是嫌麻煩 07/04 08:09
77F:推 GameHeven: git有提供stash功能,自己google一下 07/04 08:47
78F:推 eric111043: local開一個branch先擺著,未來弄完整弄好再merge比 07/04 09:24
79F:→ eric111043: 較好。不然就是先把小function整理好的先上一條commit 07/04 09:24
80F:→ eric111043: ,不完整的功能不要merge,這樣沒意義啊! 07/04 09:24
81F:推 usoko: commit隨你啊 不要push就好了 如果你要備份就自開branch 07/04 12:20
82F:→ dwadefans: git add . && git diff --cached > temp.diff 07/04 12:47
83F:→ dwadefans: git apply temp.diff 07/04 12:47
84F:→ ohyeah5566: stash一票 07/04 16:23
85F:→ s860134: 不建議 stash 靈活度有限 07/04 20:28
86F:→ s860134: 開 branch commit才是版控咩 07/04 20:29
87F:噓 NewSpec: 你有stash 07/05 05:19
88F:推 StrikeBee: This code mudamudamudamuda 07/05 15:02
89F:推 maurlice: function name is going.(30%) 07/08 16:20
90F:→ maurlice: [continue 30%] Implement .... 07/08 16:21
91F:→ leolarrel: git commit -m 'fxxk you ,nvidia' 07/09 14:58
92F:推 maypcc: branch & patch 07/10 06:58
93F:推 molopo: git commit 下班886 07/19 20:15







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:Gossiping站內搜尋

TOP