DEV Community

Cover image for How to become git pro?

How to become git pro?

Yashu Mittal on October 31, 2018

How to learn git? I want to become a pro/master.

I know most of you say start reading the docs. I want to try a different way.

Yeah, videos are good too. Anyone else got any idea.

Collapse
 
smuschel profile image
smuschel • Edited

You're absolutely right. I recommend reading the Git book. There are also many online tutorials that you can Try from your browser. One thing you might look at is try.github.com
From the initial steps, you'll have to use Git on a daily basis to become a Master...

Collapse
 
mittalyashu profile image
Yashu Mittal

Thanks for your suggestions smuschel.

Can you suggest few git books? I have already tried try.github.com.

I am using git a lot, if I don't know the commands (for example: git blame), then how will I use it.

Collapse
 
smuschel profile image
smuschel

With book I meant this one

That explain All commands and typical workflows. There's certainly other book, but that's the one I know...

Thread Thread
 
mittalyashu profile image
Yashu Mittal

Good suggestion, but it's the same what I have written in my post.

Any different way?

Thread Thread
 
smuschel profile image
smuschel

Sorry, but that's all I have right now...

Collapse
 
thomaswdmelville profile image
Thomas Melville • Edited

Hi,

Here's how I levelled up in git.

  • just use it
  • learn the commands as you need them.
  • When you run into issues, uncle Google to the rescue!
  • Document everything you've learnt, for future referral.
  • Once you're comfortable with the commands start looking inside git, I found this article good
Collapse
 
mittalyashu profile image
Yashu Mittal

Thanks for your suggestion Thomas Melville.

Already tried, didn't work. 😅

Collapse
 
thomaswdmelville profile image
Thomas Melville

That's a pity. You could look at why it didn't work and find your learning style.

Thread Thread
 
mittalyashu profile image
Yashu Mittal

Yeah, working on that part only. 😅

Collapse
 
anishkny profile image
Anish Karandikar

This. Initially when git commands might as well have been gibberish to me, I used SourceTree. A couple of options helped me follow along with the git commands SourceTree was running:

  • View > Show Command History
  • Preferences > Advanced > Always display full console output

Turns out this was a great way to learn git!

Collapse
 
mittalyashu profile image
Yashu Mittal

SourceTree is helpful, but it cannot replace the command line, we still have to use the terminal for most of the commands.

Collapse
 
mittalyashu profile image
Yashu Mittal

I use source control which is built-in vscode. Because GUI doesn't only make the work easier but faster too.

For example: We don't have to type same command again and again git commit -m "Hello world".

Collapse
 
mittalyashu profile image
Yashu Mittal

Thanks for the suggestion david karapetyan, I will definitely try learngitbranching.js.org.

Collapse
 
yo profile image
Yoginth

GitHub Lab - lab.github.com

Collapse
 
rhymes profile image
rhymes

They are in my "to read" bookmarks but haven't read them yet:

Atlassian's Advanced Git Tutorials

Collapse
 
mittalyashu profile image
Yashu Mittal

Thanks for the suggestion rhymes, I will definitely consider it.