[OT] Question about Git branches
frank at chagford.com
Tue Sep 16 08:22:03 CEST 2014
I know there some Git experts on this list, so I hope you don't mind me
posting this question here.
I am slowly getting comfortable with Git, but there is something that
You are encouraged to make liberal use of 'branches', and if required you
can have multiple branches running concurrently. When you commit changes on
one branch, those changes are not visible to other branches until you merge,
so each branch can be worked on independently.
However, if you are working on a branch and make some changes, those changes
are visible to *all* branches until you commit. If you run 'git status' from
any branch, you can see all files that have been modified or added.
It seems to me that this can be confusing. When you are ready to commit
changes on one branch, you have to -
- check that it is the currently checked-out branch, which is not always
- choose which altered files you want to add to the staging area
- stage them and then commit
This seems error-prone. Am I missing something?
More information about the Python-list