简体   繁体   中英

How to force `git merge`?

I'm experiencing the "file name too long" error described in another question . I've already fixed the file name in a remote repo, and now I'm trying to merge in the changes from the remote that fix the name. However, git won't let me merge because it thinks I have uncommitted changes (the too-long-named file it can't create). Is there some way to force git to merge? Note that git status lists no modifications, besides printing the file name too long error, so I don't see how to satisfy git first locally. In particular, git does not report the file as rm'd or missing.

我能够通过执行git reset --hard <remote>/<branch>来解决问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM