如何修复拉动问题。 当我从xcode中取出然后它会给出错误" 无法拉动工作副本有未完成的更改"
答案 0 :(得分:1)
您必须提交或存储代码。
如果您有更改并且无法提取,则只需提交更改即可。
# add the desired files to the index
git add .
# commit your changes
git commit -m "Message..."
# now pull your changes
git pull origin <branch>
# stash your changes and pull them back later on
# add the [-u] flag for untracked files if needed
git stash save <name>
# pull the new content
git pull origin <branch>
# get back the code which you stashed
git stash pop