Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by tux3 on Saturday November 12, 2016 @02:30PM
(#12939703)
Don't forget to git push --force to resolve conflicts!
Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by AtheistOfFail on Saturday November 12, 2016 @06:26PM
(#12940793)
We have a company taser for people who do this.
You have to self-tase one second for every commmit you blew away.
Top score is 4 seconds.
Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by ajmurmann on Saturday November 12, 2016 @07:10PM
(#12940991)
I'm not a fan of complicated git flows, but are there really people who force push to resolve conflicts? I mean professional developers who do this on real projects?
Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by toothbrush on Saturday November 12, 2016 @08:33PM
(#12941314)
Nothing wrong with doing that on a feature branch after rebasing, as long as you are sure no-one else has pushed any changes to that branch in the meantime. Although personally i prefer --force-with-lease, which will warn you if that's happened.
Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by ajmurmann on Sunday November 13, 2016 @01:35AM
(#12942165)
If anybody pulled in the meantime and they don't know you are forced pushing they also might get in trouble because of your force push.
If you have conflicts on a feature branch I guess you aren't the only one working on it and as soon as that's the case force pushing is generally a bad idea unless you coordinate carefully with the test of the team.
The only time I ever force push is on a feature branch that only I work on and I want to amend the commit I just pushed a second ago.
Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by djeikyb on Saturday November 12, 2016 @09:17PM
(#12941476)
I hesitate to call folks who do this "professional", but yes. I have also worked around people who blindly resolve all conflicts with their version and then comment out the failing tests.
Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by AnonymousPlanet on Saturday November 12, 2016 @07:10PM
(#12940992)
your company is a frat house?
Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by beeforpork on Sunday November 13, 2016 @04:46AM
(#12942580)
Don't work => don't self-tase.
I am not convinced. Instead, you'd need a reward for every cleanly committed line of code.
Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by rvense on Saturday November 12, 2016 @07:01PM
(#12940953)
Also next time you need to deploy you can just use --amend to avoid having to think of new commit messages
Re:Ask HN: I will quit my job as a PM to join a coding bootc...
by smnplk on Saturday November 12, 2016 @09:58PM
(#12941591)
I do it when I push to staging on Heroku :)
>> vi main.ex
>> # No tests needed thanks to BEAM ;)
>> git add -A
>> # No need for descriptive commit messages; we spend our time on the important stuff ;)
>> git commit -m 'New commit'
>> # Rockstars push straight to production
>> git push origin master
Am I doing this right?? /s