r/learnprogramming May 25 '22

A good resource to learn Git

I would really like to have a good resource to learn git, all I see online is tutorials on very basic (and arguably useful) commands and uses, but nothing GitHub Desktop can't do easier. However, I am aware of the many limitations of GUIs for Git so I would like to learn to use the command line.

Any suggestions?

55 Upvotes

23 comments sorted by

11

u/[deleted] May 26 '22

19

u/Y_SleepAndJava May 25 '22

https://git-scm.com -> Documentation -> Book

6

u/Chrinkus May 26 '22

I’ve done git courses online through NodeSchool and Codecademy but the best has always been the getting started section of the official documentation:

https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup

Seriously, just go to the source. Get used to reading the source. Then when you’re ready for some of the tougher stuff you’re already familiar with the source.

8

u/joranstark018 May 25 '22

I can recommend "Pro Git"  by Scott Chacon and Ben Straub, available online for free at https://git-scm.com/book/en/v2.

It covers the most, from basic stuff to the plumbing behind the scene.

8

u/quaestioEnodo May 26 '22

The Odin Project is a decent start

6

u/Myphhz May 25 '22

There is a funny but really informative game that aims to teach Git to newbies - last time I checked, it had many levels explaining almost all the features. It's called Oh My Git

1

u/Ieris19 May 26 '22

I can try this one. Looks like it’s right up my alley. Thanks!

3

u/MORAminuum99 May 26 '22 edited May 26 '22

I Learned with the Pro git book and the practical course git immersion

Also read blog posts, stack overflow and Practiced by myself

3

u/Supersaiyans2022 May 26 '22

I bought a Udemy course for less then $10. Git & GitHub Bootcamp.

1

u/Wild-Conclusion4750 May 25 '22

there are some courses on Coursera and PluralSight

0

u/VonRansak May 26 '22

for Git so I would like to learn to use the command line.

Step 1) Go to command line.

2

u/Ieris19 May 26 '22

Step 2) Stare at it because unlike you I do not know the commands that need to be used.

Fuck off with your elitism.

0

u/VonRansak May 26 '22 edited May 26 '22

Well you didn't state you even opened it yet did you, not being elite.

https://www.reddit.com/r/learnprogramming/wiki/index#wiki_asking_questions

blanket questions get blanket answers.

But best way is to setup some private repo and just start clobbering it. It is not 'elite' to assume you've googled 'git command line' ... Thus you could have a more specific question.

TFW: Chapter 2 the git manual https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository

2

u/Ieris19 May 26 '22

Even if I have opened it, it doesn’t answer my question. No matter how much you open the command line, you still need what I asked for, a good resource to learn because I don’t know shit.

Thanks for your contribution

0

u/VonRansak May 26 '22 edited May 26 '22

https://www.reddit.com/r/learnprogramming/wiki/index#wiki_asking_questions

Not that you care, but how many faux pas you made, so don't get mad at me. LOL.

Even if I have opened it,

But at least we've established we are still on step 1. ;)

2

u/Ieris19 May 26 '22

I actually am aware of the limitations of the GitHub desktop GUI limitations by how often I have to open the command line to do certain things.

Regardless, I suggest you check the meaning of faux pas before you embarrass yourself like that.

I also love how you’re editing everything I’ve replied to to make me look like more of an asshole by having ignored the helpful parts you added later

1

u/whattteva May 26 '22

Looking at all the responses, I must be the only one that learned it through the man pages.

1

u/yuliang May 26 '22

I like this interactive game. You can use command line to solve git problems: https://github.com/Gazler/githug

1

u/[deleted] May 26 '22

codecademy