首页 > 其他 > 详细

GIT问题汇总

时间:2016-03-01 10:58:01      阅读:248      评论:0      收藏:0      [点我收藏+]

1、git pull出现的合并问题:

Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branch

a、解决办法1:

Ctrl+K+H for help. I pressed that and saw a menu. Ctrl+K+D. Then give the file name and enter followed by Ctrl+K+X to exit. Once you go into the help you will have a menu which tells you what to do.

b、解决办法2:

Actually it‘s not an error! It means you should enter some message to mark this merge. My OS is Ubuntu 14.04.If you use the same OS ,you just need to do this as follows: 1. type some message; 2. "Ctrl+C+O"; 3. type the file name(such as "Merge_feature01") and press Enter; 4. "Ctrl+X" to exit; Now if you go to .git and you will find the file "Merge_feature01", that‘s the merge log actually.

 

c、参考资料:

Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branch

GIT问题汇总

原文:http://www.cnblogs.com/cv-pr/p/5230073.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!