2 ms·
My definition of a shared branch is the one where only one person is working. It can be your local branch and the same one after you push it to remote. It's sti
by rednafi 2y ago
My definition of a shared branch is the one where only one person is working. It can be your local branch and the same one after you push it to remote. It's still not shared in the sense that only 1 person is supposed to work on that branch.
In this case, you can easily perform rebase and run `git push origin HEAD --force-with-lease` without causing any headache for anyone else.
- osigurdson 2y agoSay you have a checkout on Linux and one on Windows and need to do some bespoke development work on each. I personally would just do git push / pull to avoid any potential for lost work. Maybe after the work is done, I would refactor the commits and rebase them before pushing to the authoritative server (e.g. github, azure dev ops, etc.).
- account42 2y ago> I personally would just do git push / pull So would I, but I have also have pull set to rebase.