News for hackers. Stuff that matters.
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.
Re:Git tips to stop you getting fired by philsnow on Monday April 08, 2013 @04:27PM (#5514336)
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.
Re:Git tips to stop you getting fired by Davertron on Monday April 08, 2013 @02:01PM (#5513368)
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).

Re:Git tips to stop you getting fired by X-Istence on Monday April 08, 2013 @02:14PM (#5513460)
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.