Our store makes extensive use of personal branches. Basically, the process will look like this:
Given that you are on the main branch
git checkout -b bug_fix_name_that_I_dont_want_to_commit
The above branch also validates it, this is where you put commits that you are not ready to push.
Now you can commit the current branch without affecting the main branch.
When you are ready to post / push this commit, simply do:
git push origin master
and your other commits will not be sent to the original repository.
When you are ready to include βbug fixesβ in the main branch, check the master branch and run:
git merge bug_fix_name_that_I_dont_want_to_commit
I think this answers the question, but if not, just let me know!
btelles
source share