I use branches as a backup of my WIP.
But coming back to it I want to have my git diff
back, so I can have again overview on changes while continuing my work.
So I usually reset my WIP-commit (git reset HEAD^
) and start work again. But when I need to commit again (a definitive commit or a WIP-commit) and push it to remote origin I wonder if this new diverging commit could create problems to collaborators pulling the same branch.
I know they will if they will make changes and commit. But what if they just pull the branch but they never touch it, and consequentially they pull the second new diverging WIP-commit?
Is it safe enough to just agree to not touch the branches of the collaborators?