Hi !
I'm learning git and have a strange issue with a simple branch scenario:
I created a new local branch dev.
So now I have two local branches: master and dev.On master, everything isup
to date: nothing to add, nothing to commit.
I've checked out the branch dev and made a change in one file.
Hello,
braches hold only commited changes (actually, they are pointers to one
specific commit). Uncommited changes travel between checkouts (well,
unless the target branch is in a totally different state, as then you will
face even stranger merge issues). So take this advise: never checkout
Hi,
git doesn's save changes in a branch. Only commits are saved in an specific
branch. So, if you have a change in a file and change the branch, this
change will be at the new branch. If you don't want it, you need to commit
or stash the change before changing branch.
If changing a branch will
From: djsuperfive maximefresch...@gmail.com
Why do I have a change to add on master whereas I made this change on my
branch dev ?
I think I can explain this more clearly:
You changed a file, but since you didn't add or commit it, none of the
branches is affected. git-status is just telling