One - One Code All

Blog Content

git pull不更新指定文件

Linux-Mac   2012-08-25 07:57:54

git pull 不更新指定文件:(先将需要更新的文件提交 add & commit)

git stash
git pull
git stash pop

或者放弃本地修改,强制拉取更新:

git fetch --all
git reset --hard origin/master
git pull //可以省略



上一篇:创建本地分支后推送到远程分支作为源分支(git push --set-upstream )
下一篇:git删除文件时出现:please enter the commit message for your changes

The minute you think of giving up, think of the reason why you held on so long.