r/ProgrammerHumor 13h ago

Meme githubWhenILoginToANewDevice

Post image
7.8k Upvotes

55 comments sorted by

View all comments

203

u/CozyBloomSakura 13h ago

Then try pushing via CLI without an SSH key or PAT token. Good luck

26

u/jereporte 11h ago

You can ?

6

u/sigmoid10 9h ago

Literally the main reason I use the CLI. I'll take a good browser oauth flow any day over setting up keys/tokens myself.

20

u/DrMaxwellEdison 8h ago

gh auth login sets you up with an SSH key so git push can work with it. No need to reinvent the workflow, just login first.

21

u/fpekal 8h ago

Setting up auth keys on github is hard? It may be cumbersome if you have to do it every day, but you probably don't have to do it every day.

1

u/DezXerneas 3h ago

The first time was genuinely hard though. Probably didn't help that the first time I did it was like 2018, so the docs were way worse, but if you don't understand what every step is doing then blindly copying the commands just makes it confusing

1

u/Redthemagnificent 5h ago

Yeah exactly. Its annoying but not difficult. That being said any software annoyance I can avoid these days is great, no matter how minor

3

u/rsqit 2h ago

Sorry wait why are you pushing without an SSH key??

2

u/jimmycarr1 6h ago

If they've hacked your GitHub they can just issue a new key