Git branch command for svn- git on cygwin

I am using svn git supported by Cygwin packages [ie setup.exe].

I tried to create a second local branch in the local repo and add the new file to the second branch. This new file should only be in the second branch, since I am not merging this branch into the master branch.

however after I check out the master branch the file is there !! ?? Any ideas? Any help would be appreciated ~~

my steps:

git br haha
git co haha
touch a.txt
git add a.txt
git ci a.txt
git co master 

      

[I see there is a.txt ...]

+3


source to share


1 answer


When switching from branches, local files are modified by checking. To avoid, add and copy the locally generated file to a specific branch and then switch.



0


source







All Articles