ç¸ä¿¡å½ä½ 使ç¨Gitæä¸æ®µæ¶é´ä¹åä½ æ¸æ¸åç°git add å git commit æ¯ä½¿ç¨å¾å¦æ¤ä¹é¢ç¹ï¼è¦æ¯è½æå®å并æä¸æ¥æä¸æ¡å½ä»¤æä½å°±å¥½äºã
æäºè¿ä¸ªæ³æ³ä¹åï¼æ们åæ¾å°ç½ä¸æ¾ç±»ä¼¼ç解å³æ¹æ¡,ä¼¼ä¹ä¹æç¨å½ä»¤å«åä¹ç±»çæ¹æ³ï¼å¯æä¸ç¹è¾¹ã
å
¶å®åï¼åå¦ï¼è¿ä¸ªGitèªå¸¦çå½ä»¤å°±æ好åï¼åªæ¯ä½ 没åç°èå·²ï¼
好以ä¸æ¯æä½æ¹æ³ï¼
ä¸ï¼å¸¸è§çæä½
1, é¦å
æéä¿®æ¹æ件
echo >> lz66303.txt
2, ç¶åæéæ交被修æ¹çæ件å°HEADç¼ååº
git add lz66303.txt
3, åæè¿ä¸ªä¿®æ¹è®°å½å°åæ¯ä¸
git commit -m"This is a commit created by lz66303."
äºï¼å并çæä½
1, é¦å
æéä¿®æ¹æ件
echo >> lz66303.txt
2, ç¶åæéæ交被修æ¹çæ件å°HEADç¼ååº,并æè¿ä¸ªä¿®æ¹è®°å½å°åæ¯ä¸
git commit -am"This is a commit created by lz66303."
æ»ç»
å
¶å®è¿äººåç±çå½ä»¤git commit -am""ä¹ä¸æ¯é£ä¹ä¸è½åï¼
好æ们æ¥çä¸ä¸å¸®å©å½ä»¤git commit -h
-a, --all commit all changed files(æ交ææ被修æ¹çæ件)
æ¯å¦ï¼ä½ ææ°æ·»å çæ件è¿æ¡å½ä»¤å°±ä¸éç¨ã
温馨提示:答案为网友推荐,仅供参考