简体   繁体   中英

From master branch i created new branch called release1

From master branch i created new branch called release1. I switched to release1 branch and added one file then again i switched to master branch.Here without merging branch,the file which is in release1 branch is reflecting in master branch why?

If you don't add/commit your new file, it is moved as a pending modification to whichever branch you'll switch to.

To avoid this, commit on your release1 branch before switching back to master and it'll "stay" there.

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