首页 > 其他 > 详细

Git basic

时间:2015-07-04 15:16:16      阅读:300      评论:0      收藏:0      [点我收藏+]

1. solve conflict

senario:

  Adam checked out master branch,

  then Bob checked out master branch,

  then Adam modify a file, commit and push,

  then Bob modify the same file,

  then Bob need to commit, then pull, then manually resolve the conflit, then commit again, then push.

 

2. ignore a tracking file

http://stackoverflow.com/questions/9237345/how-do-i-ignore-pycharm-configuration-files-in-a-git-repository

for single file

git rm --cached [filename]

for folder

git rm --cached -r [folder]

 

  

Git basic

原文:http://www.cnblogs.com/phoenix13suns/p/4620646.html

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