码迷,mamicode.com
首页 > 其他好文 > 详细

Git basic

时间:2015-07-04 15:17:39      阅读:100      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!