git冲突时丢弃所有本地修改使用remote版本命令:

# fetch from the default remote, origin
git fetch
# reset your current branch (master) to origin's master
git reset --hard origin/master

原文链接: https://stackoverflow.com/questions/4785107/resolve-conflicts-using-remote-changes-when-pulling-from-git-remote

 

 

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注