ProgrammerHumor

initialCommitViaCLIBeLike

initialCommitViaCLIBeLike
https://i.redd.it/6fw35i7aj9cf1.gif
Reddit

Discussion

Mr_Potatoez
:unity:

Use this: https://education.github.com/git-cheat-sheet-education.pdf

17 hours ago
cjb3535123

He is. He said he had to use a cheat sheet every time.

12 hours ago
HappinessFactory

I love this gif

14 hours ago
beisenhauer

What's hard to remember about git push?

16 hours ago
exnez
:cs:

terminal scary

15 hours ago
Skibur1

It’s all and great until you’re a few commits behind and merge conflicts happen…

13 hours ago
AppropriateStudio153

I have several ideas why that might not work.

  • You haven't added new files or have no tracked files. *  You have tracked files, but you did not commit them.
  • You have committed them, but remote is ahead, and your changes cause a conflict, which leads to a rejected push.

In all these cases git push won't help you, as a single command.

14 hours ago
exnez
:cs:

This why terminal scary

7 hours ago
Kitchen_Device7682
:sc:

fatal: The current branch has no upstream branch

7 hours ago
Luneriazz

conflict merge

5 hours ago
InTheEndEntropyWins

Sounds like you are working on a small project by yourself. When you are working on larger projects with multiple people you can't just git push by itself.

13 minutes ago
photogdog

If you have the right permissions, you can use --force to get past a lot of issues with git.

git add .
git commit -m 'bug fix and stuff'
git push origin master --force
10 hours ago
worked-on-my-machine

wow brb bro gonna go do this on one of the repos at my job

9 hours ago
markiel55

Also, don't forget the good ol' git branch -D main

4 hours ago
exnez
:cs:

GitHub desktop or VSCode built-in Git extension. Never had to write a command

16 hours ago
big_guyforyou
:py:

i'm so lazy that once the CLI stopped working for me I just used the github website.

i did google the problem, though. i think i had to delete an old password from the keychain but i couldn't figure out how to do that. like i could literally see what to click on but i couldn't click it

16 hours ago
TheGreatSausageKing

People like terminal because they think it makes them look smart.

I never used and never will, there is a reason we moved from msdos to windows.

11 hours ago
exnez
:cs:

How else were we gonna play GTA 6?

11 hours ago
TheGreatSausageKing

Hahahaah good one

11 hours ago
Gysenok

Not every computer has a gui, especially servers. Also not every ide has buttons for using git. So if you want to have version control on a remote server you need to use cli/terminal

11 hours ago
TheGreatSausageKing

If you are commiting from a server, I'm sorry,

There is GitHub desktop which is freem

Whoever is programming on a remote server, I'm sorry for you..

10 hours ago
delayedsunflower
:cp::cs::py:

I program on a remote machine. It's fantastic and has literally hundreds of times better hardware than my laptop. I can WFH and literally program on a beach and have all the hardware I want and not step a foot in an office. It's all mostly done through ssh and CLI because remote desktop software is pretty slow and clunky.

You should try it it's great.

9 hours ago
TheGreatSausageKing

It's awesome but it's clunky ?

6 hours ago
Jk2EnIe6kE5

Remote desktop software is clunky. They're using SSH, which is a terminal-based remote access program.

6 hours ago
Gysenok

Github desktop is not officially supported on linux, so unless you're using git exclusively on windows and Mac it's not an option. Maybe it's a strong opinion but the need for a gui application to have version control seems way too big of a crutch for me. As a programmer a basic understanding of the terminal is (at least in my experience and opinion) expected, the need to click through menus seems unnecessary and a waste of time compared to using the terminal. And git cli is universal, gui applications for git are not.

9 hours ago
exnez
:cs:

If you’re using Linux, you’re a command geek anyways

8 hours ago
TheGreatSausageKing

As a programmer, basic understanding of terminal is just bullshit. We just need to get thing done with the least effort.

Anything you add because you feel like you should use it know is just for your ego

6 hours ago
No-Article-Particle

I use terminal because it's the environment that is most comfortable and convenient to me. In a job, it's also very common to dev/deploy/test on remote servers, so that terminal might be your only choice.

9 minutes ago
The-Chartreuse-Moose
:powershell::bash::cs::j::py::terraform:

Some people apparently have a fear of commitment. But seriously: learn the commands by using them!

12 hours ago
MinosAristos
:py: :ts: :cs:

VSCode UI does the important stuff for you

16 hours ago
_sweepy
:cs::ts:

sourcetree

14 hours ago
AWzdShouldKnowBetta
:kt:

It's been a long time since I actually laughed out loud on this sub. Nice one!

12 hours ago
grasopper

I'm even worse than that guy. I use the tool in visual studio

7 hours ago
Wizado991

I get why people are uncomfortable with it but it's like everything else. The more you use it the better you get with it. If you let yourself use one of the graphical apps to do git for you, you won't ever learn how to use the tool.

5 hours ago
elderron_spice

There are a ton of git clients out there. I used SourceTree when I started, and it eased me up into git since it also displays the commands it uses to fetch, checkout, create pull requests, prune, rebase, etc.

13 hours ago
livingMybEstlyfe29

pwd git status git add —all git commit -m “I love git” git push git status

7 hours ago
InTheEndEntropyWins

I want to share this at work, but probably not appropriate.

15 minutes ago
KillCall
:py:

3 git command to remember.

Git add

Git commit

Git push

Everything else look up on the internet as they come up.

3 minutes ago
Raemos103

git rebase -i is the only command you'll need to know other than commit and push

13 hours ago
asd1o1
:c:cp:asm:py:j:

git stash

git switch

git restore

...

git pull

13 hours ago
[deleted]

rebase is dirty

12 hours ago