your local changes would be overwritten by merge. commit stash or revert them to proceed. view them

简介: error log:   your local changes would be overwritten by merge. commit stash or revert them to proceed.

error log:

 

your local changes would be overwritten by merge. commit stash or revert them to proceed. view them

  

 

You can't merge with local modifications. Git protects you from losing potentially important changes. You have three options. One is to commit the change using

git commit -m "My message"

  

The second is to stash it. stashing acts as a stack, where you can push changes, and you pop them in reverse order.

To stash type:

git stash

  

Do the merge, and than pull the stash:

git stash pop

  

The third options is to discard the local changes using git reset --hard.

 

 

http://stackoverflow.com/questions/15745045/how-do-i-resolve-git-saying-commit-your-changes-or-stash-them-before-you-can-me

 

目录
相关文章
|
22天前
|
存储 开发工具 git
【SourceTree】Your local changes to the following files would be overwritten by merge【解决办法】
【SourceTree】Your local changes to the following files would be overwritten by merge【解决办法】
|
5月前
|
开发工具 git
解决报错:Remove untracked files, stash or commit any changes, and try again
解决报错:Remove untracked files, stash or commit any changes, and try again
42 1
【异常】svn: E200009: Commit failed (details follow)/both sides of the move must be committed together的解决办法
svn: E200009: Commit failed (details follow)/both sides of the move must be committed together的解决办法
475 0
|
8月前
|
开发工具 git
git报错,error: You have not concluded your merge (MERGE_HEAD exists). hint: Please,
git报错,error: You have not concluded your merge (MERGE_HEAD exists). hint: Please,
87 0
|
开发工具 git
git更新:Your local changes to the following files would be overwritten by merge
git更新:Your local changes to the following files would be overwritten by merge
240 0
|
开发工具 git
【已解决】git取消分支合并(fatal: There is no merge to abort (MERGE_HEAD missing).)
git取消分支合并(fatal: There is no merge to abort (MERGE_HEAD missing).)
967 0
|
Java 开发工具 Maven
git解决error: The following untracked working tree files would be overwritten by c
git解决error: The following untracked working tree files would be overwritten by c
1312 0
subclipse同步冲突问题A conflict in the working copy obstructs the current operation
subclipse同步冲突问题A conflict in the working copy obstructs the current operation
subclipse同步冲突问题A conflict in the working copy obstructs the current operation
|
开发工具 git
Git: Cannot update paths and switch to branch 'feature' at the same time.
Git: Cannot update paths and switch to branch 'feature' at the same time.
155 0
|
算法 安全 Linux
Git 拉取项目小技巧之切换分支error: The following untracked working tree files would be overwritten by checkout:
Git 拉取项目小技巧之切换分支error: The following untracked working tree files would be overwritten by checkout:
616 0
Git 拉取项目小技巧之切换分支error: The following untracked working tree files would be overwritten by checkout:

热门文章

最新文章