940
In case of fire (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] rufus@discuss.tchncs.de 4 points 8 months ago* (last edited 8 months ago)

It should (at least) be:

git commit -a -m "๐Ÿšจ๐Ÿ”ฅ๐Ÿšจ"
git push --force

Better, create a new branch and push it to origin(?).

Relevant The IT Crowd

[-] IAm_A_Complete_Idiot@sh.itjust.works 4 points 8 months ago* (last edited 8 months ago)

Better have not created any new files tho - git commit -a doesn't catch those without an add first.

[-] ZephyrXero@lemmy.world 1 points 8 months ago* (last edited 8 months ago)

So we need git add . && git commit -a here really

In which case the -a isn't needed.

this post was submitted on 25 Nov 2023
940 points (97.3% liked)

Programmer Humor

31687 readers
318 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS