Re:Git tips to stop you getting fired
by Davertron on Monday April 08, 2013 @12:14PM
(#5512596)
If you rebase a lot, then you want to avoid pushing code constantly until you get it where you want it.
[ Parent
| on HN ]
So push to a remote feature branch that is named after your username, then rebase the changes in that feature branch onto the 'trunk' branch and push the result ?
The D in DVCS is all well and good, but there are business reasons for having a canonical store of all source materials.
Re:Git tips to stop you getting fired
by jimktrains2 on Monday April 08, 2013 @12:48PM
(#5512828)
One of the many reasons not to rebase code that's been pushed already.
As far as I know there's only one reason not to rebase code that's been pushed.
My point was that pushing constantly as a backup mechanism isn't an option if you intend to rebase frequently (unless you're the only developer on the project).
I have a personal clone of whatever project I am working on, any branches that I publish can be changed at any time using a push -f.
Re:Git tips to stop you getting fired
by nathan_long on Monday April 08, 2013 @03:53PM
(#5514083)
Depends on your team. I'm on a small one, and I often rebase and force push a branch I'm working on, because I know nobody else is working on it.