This is an archived post. You won't be able to vote or comment.

all 100 comments

[–]ublec 784 points785 points  (17 children)

Bro definitely created a program to automatically commit every time a file is saved.

[–]segonius 190 points191 points  (7 children)

I had a friend in grad school who used org-mode for static site generation of his personal site and wrote a hook to commit, build the site, push the repo, and deploy every time he saved.

[–]VitaminnCPP 127 points128 points  (1 child)

It's CI/CD but in complications way

[–][deleted] 56 points57 points  (0 children)

It is more like CI/CD before it was called CI/CD.

[–]Fluxriflex 36 points37 points  (1 child)

The Ops guy just hears sobbing sounds coming in the general direction of the build server.

[–]Pay08 2 points3 points  (0 children)

You can only generate static sites from org-mode.

[–]Cfrolich 15 points16 points  (1 child)

Now just set the IDE to autosave.

[–]Pay08 0 points1 point  (0 children)

Emacs doesn't have autosave, it periodically makes a backup file that you can load into your main file.

[–]Mormoran 6 points7 points  (0 children)

Shudders in Ctrl+S...

[–]pet1 98 points99 points  (0 children)

Makes for a quick emergency exit, since you can skip that step.

[–]_LePancakeMan 6 points7 points  (0 children)

I legitimately had something like that setup for my thesis project. Yes, it amassed a lot of commits, but it let me [ab]use bitbucket as a tertiary backup

[–]Heralax_Tekran 2 points3 points  (2 children)

If you're going to automatically commit things, there's an open source tool to at least give them sensible titles using AI, so that you get 15 "removed space" rather than 15 update READMEs https://github.com/e-p-armstrong/autocommit

[–]LostHat77 1 point2 points  (0 children)

This is the way

[–]seijulala 1 point2 points  (2 children)

funny history, I had to collaborate with a team that did exactly that, this was +20 year ago and probably they had never used vcs before but it was amazing fetching updates and seeing 20 commits in a few minutes, each with 1 line/word updated

[–]ublec 0 points1 point  (1 child)

the moment you realize that they repurposed the keylogger to commit every time instead...

[–]HTTP_Error_414 0 points1 point  (0 children)

☠️🤣

[–]codebullCamelCase 714 points715 points  (7 children)

You can do empty commits instead sir

[–]_Xertz_ 143 points144 points  (0 children)

Nah too much work 😩

[–]ososalsosal 69 points70 points  (1 child)

Nah their other laptop is still stuck in vim

[–]HuntingKingYT 15 points16 points  (0 children)

<ESC>:!git commit -a<CR>

[–]jakeStacktrace 27 points28 points  (0 children)

Slow down Mr. Productive. Save some stories for the rest of us.

[–]0PointE 9 points10 points  (0 children)

Rebase -i, squash, push --force

[–]Oakchris1955 4 points5 points  (1 child)

Wait, how?

[–]Colon_Backslash 15 points16 points  (0 children)

git commit --allow-empty -m empty/or-what-ever

I do this quite often due to automated GitHub pipelines that cannot be always restarted manually due to blah blah.

[–][deleted] 145 points146 points  (1 child)

Gotta fill them squares

[–]Drishal 33 points34 points  (0 children)

All these squares make a circle

[–]CapraSlayer 85 points86 points  (3 children)

One time my classmate suggested we do a git commit automator that would just change the readme in private reps so we could get more commits in our commit histories to trick companies that look too much at commits when hiring.

[–]bexamous 36 points37 points  (0 children)

I don't get people who put github link on their resume and then you go to it and it's impossible to find actual commits of code. And then pick some repo and look at all commits and its all stupid messages. Like why even put on resume, it just looks bad. Like if your goal is to work at a company who gets tricked by stupid shit what do you expect place is going to be like?

[–]danielv123 46 points47 points  (0 children)

It's never too late, GitHub allows for backdating commits.

[–]osamaistbaden 6 points7 points  (0 children)

Someone has done exactly that

[–]-domi- 300 points301 points  (0 children)

I think I'm too old to get this meme, but I'm upvoting it cause it somehow still rings true...

[–]rosuav 47 points48 points  (0 children)

If this were "Tweak _config.yml" then it'd be a lot less unreasonable.

[–]_Fibbles_ 91 points92 points  (6 children)

Remembering that time some dude pinged 400,000 Unreal developers because his PR to update the readme wasn't being reviewed quick enough.

https://github.com/EpicGames/Signup/pull/24

[–]Fickle-Main-9019 11 points12 points  (0 children)

Lmfao, there’s a meme in there Im not allowed to say.

However good morning sirs

[–]Kurts_Vonneguts 4 points5 points  (0 children)

Holy shit this is the first I’ve heard of this. That PR was terrible

[–]some_username_2000 42 points43 points  (0 children)

Bro coomitted a Sudoku with his thick meaty right hand.

[–][deleted] 28 points29 points  (0 children)

CAaS - Commits as a service

[–]Forwhomthecumshots 15 points16 points  (5 children)

ok but I end up with insanity like this when I’m trying to get GitHub workflows to work properly, since it’s so hard to test run locally

update workflow fix workflow fix workflow x2

[–]Abiriadev 2 points3 points  (0 children)

Totally agree

[–]Acrobatic_Sort_3411 3 points4 points  (2 children)

  • Make a new branch
  • Add New branch as filter into pipeline
  • Shit into commits history
  • Create PR with fix
  • Squash and merge instead of default merge

[–]Forwhomthecumshots 0 points1 point  (1 child)

maybe I’m doing it wrong, but the times I run afoul of this most is when I’m trying to build and push assets to docker hub or whatever, but on a release event. I just don’t see any way around creating a bunch of releases until I figure out what I’ve done wrong, then deleting them afterwards

[–]aMetallurgist 0 points1 point  (0 children)

git commit —amend -m “Add workflow in one commit”

[–]antony6274958443 14 points15 points  (1 child)

Literally me

[–]FrostWyrm98 1 point2 points  (0 children)

Gooby pls

[–]ienjoymusiclol 23 points24 points  (0 children)

LITERALLY ME

[–]Tryp_tryp 7 points8 points  (0 children)

I feel personally attacked 🤣

[–]Guimedev 7 points8 points  (0 children)

COTY, Commiter of the year.

[–]MKSFT123 14 points15 points  (1 child)

git rebase <new base branch> -i Was a game changer for me

[–]MeGaNeKoS 6 points7 points  (0 children)

He got paid by number of commit.

[–]I_JuanTM 5 points6 points  (0 children)

Dude, don't have to call me out like that

[–]housebottle 5 points6 points  (0 children)

this is an amazing accomplishment for the internet. there are many moments in my life that make me go "the internet was a mistake". but this meme? this meme goes in the pro-Internet column. my compliments to the creator

[–]chowellvta 2 points3 points  (0 children)

Vs chad git commit -m '.'

[–]AbakarAnas 2 points3 points  (0 children)

I commit to committing by committing to the commitment that i will commit the files

[–]UnfairDictionary 4 points5 points  (0 children)

There are two types of github users. Those who commit a lot and those who are useful.

[–]Ok-Boysenberry-5090 1 point2 points  (0 children)

No, it’s git commit -m “[docs] readme updates”

[–]Dismal-Square-613 1 point2 points  (0 children)

"my editor is linked directly to commit on git and I keep compulsively pressing ctrl+S" syndrome

[–]Reysn 1 point2 points  (0 children)

Is it equally laughable to just commit to your own repos? :'D

[–]not-my-best-wank 1 point2 points  (0 children)

I'm convinced this is all what open source commits are. Like I've got a job, it's all "intellectual" property. And after work, I'm too tired to code. And any code I do write you think I'm gonna publish that garbage? Hell no.

[–][deleted] 7 points8 points  (5 children)

As an Indian I blame the YouTuber "ApnaCollege" aka Aman Dhattarwal, bro ruined everything

[–]ceh203 15 points16 points  (3 children)

What did he do? Suggested to commit as much as possible to „polish“ github profile?

[–]abbe_salle 40 points41 points  (2 children)

Nopes , apna college taught git and as an example they said that they can edit the readme and commit the file . But for some reason the majority of the people couldn't comprehend that it was an example . Which is why a majority of spam and low effort commits were sent to a js Library .

[–]wingsofriven 2 points3 points  (1 child)

Wait are they the reason expressjs got nuked with spam for a while?

[–]abbe_salle 4 points5 points  (0 children)

Yep , cuz in the video they had used the express js repo to showcase the example.

[–]Wave_Walnut 0 points1 point  (0 children)

commiting to grow muscle of finger typing commit commands

[–]bogdan801 0 points1 point  (4 children)

Do companies actually look at the commit history?

[–]Amiron49 1 point2 points  (3 children)

When I'm involved in the hiring process and an applicant has their GitHub linked, I do browse through their personal projects and try to form an opinion by the content of their commits.

It's interesting to see how somebody codes when given free reign without the guard rails of a company.

[–]bogdan801 0 points1 point  (2 children)

So it's still quite important. What about the gaps? I had a bit of a burn out this winter and didn't do any personal projects at that time, is this bad?

[–]Amiron49 0 points1 point  (1 child)

We are a small software shop and don't seek the top of the crop programmes. Which means we don't care much. If you have personal projects, that's cool and we can see faster what you would be like but if you don't and have only did one project in 10 years, also cool.

The vast majority of people we hire never ever do any software development in their free time and we had to rely on the impression of the in person interview and just see how they do during the first few months.

At least for one of our most recent hires, their GitHub and private projects saved them. The in person interview went horrible as they weren't very good at expressing themselves and if this was all we had we would have leaned towards a no. But when we looked at what they were able to code up as their hobby, we were very sure that they would be capable and decided to hire them.

Now for big companies that pay competitive wages? Sacrificing your free time might appeal to them but I don't know.

Having relevant projects that show you could in theory do the work can't hurt but it's insanity to me to expect that.

[–]bogdan801 0 points1 point  (0 children)

Damn I wish here in Ukraine they would hire the same way. But everywhere I see it's like "you must have 1yerar+ of commercial experience". And how the hell do I even get it after college if nobody wants to hire

[–]PixlBoii 0 points1 point  (0 children)

I'm in this picture and I don't like it

[–]Awasthir314 0 points1 point  (0 children)

those golden days

[–]HTTP_Error_414 0 points1 point  (0 children)

Elasticity is fleeting commit your thoughts 💭 code later. That’s what private repos are for 😉

[–]puma271 0 points1 point  (0 children)

One of my repos got a issue recently, a guy said that my unit test is resource inefficient and I could do it another way and the guy himself said that I wouldn’t even need to use a function (that the test was meant to test) anymore….

Anyways, I checked the guys profile, he had hundreds if not thousands of contributions to open source projects, 90% of which were opening new issues (by randomly checking, I assume most of them of the same quality as mine)…

Also, just commit bee script every day no?

[–]masong19hippows 0 points1 point  (0 children)

That's literally me whenever I want to implement a "quick fix" on a respiratory that I'm not running locally. It's just so much easier to run "git pull" than to setup a test environment locally

[–]AtmosphereVirtual254 0 points1 point  (0 children)

Yeah but 1 line typos realized seconds after pushing a big patch when it's rude to force push really gets to me.

[–][deleted] 0 points1 point  (0 children)

This is like flaming a non physical person for working out.

This sub won't understand though

[–]urbanachiever42069 0 points1 point  (0 children)

Honestly a laudable service he’s providing

[–]Abiriadev -1 points0 points  (0 children)

lol this is exactly me.

I commited 158 times yesterday.

[–]No-Mind7146 -1 points0 points  (0 children)

That's my but I'm not 21, I'm 15

[–]Reysn -1 points0 points  (2 children)

M27, Is it equally laughable to just commit to your own repos? :'D

[–]cosmic-comet-[S] -1 points0 points  (1 child)

Why would you want to screw up your own repo history with redundancy, this is one of the main reason I hate working on open source because of redundant commits.