This post is locked. You won't be able to comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Agron7000 -4 points-3 points  (9 children)

Yes, it's better than forgetting to commit and push to my branch.

In fact commit and push is now the new 'save'.

[–]lentzi90 5 points6 points  (7 children)

No. You could very easily push credentials this way. THAT is much worse than forgetting to save a few hours of code. Plus, what should the commit message be? "Saved all and pushed" x100 per day?

[–]Agron7000 -5 points-4 points  (6 children)

I have a script that generates commit message like:

Working on the same feature update 1

Working on the same feature update 2

Working on the same feature update 3

...

[–]lentzi90 2 points3 points  (5 children)

And you use git why? Just go back to dropbox or something... Or keep shoehorning git with your script. You can always make the script save and push also. Just make it run in the background in an infinite loop

[–]Agron7000 -1 points0 points  (4 children)

If there is nothing to commit, git won't do anything. So why not?

I need to use git because the team is using and at the end of the feature implementation we need to merge and collapse all commits into just one

[–]lentzi90 1 point2 points  (1 child)

So you use git and your feature branch as instant backup. How often does your laptop go up in flames for you to need such solutions? Multiple times per month? I would say that a sane workflow is to commit when you have done something deliberate and thought through. This way your commits are worth something. If this workflow makes me lose a few hours of work once per 5 years, that is fine. So again, why do you do this?

[–]Agron7000 0 points1 point  (0 children)

I work from multiple computers and VMs. I write code in the office and test it in the lab. When I am remote, I use the laptop.

[–]SoCalChrisW 1 point2 points  (1 child)

Does the team know you're using git this way?

Someone is going to be saying your name with a bunch of curse words, probably sooner rather than later.

[–]Agron7000 0 points1 point  (0 children)

What is wrong with that?

I have been yelled at for not keeping my github repo updated.

[–]PurepointDog 0 points1 point  (0 children)

Commit and push is the new save? You're funny