简体   繁体   中英

Branching modifies code in GIT repo

Our GIT repo has ended up in a weird state. If I branch off the develop branch, and immediately diff the new branch with develop, they differ. The new branch contains an old bug which has been fixed in the develop branch. This is all done locally using SourceTree and the latest develop branch from remote repo. My teammate experienced the same thing, so it can't be just my local repo being corrupt. How is this possible, and what could be done to fix it?

Your local repository is probably "compromised". Clone it (in another folder) and checkout the develop branch to see if they still differ.

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