DEV Community

Cover image for How to become git pro?
Yashu Mittal
Yashu Mittal

Posted on

How to become git pro?

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

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

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

Top comments(16)

Collapse
smuschel profile image
smuschel • Edited
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

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
From the initial steps, you'll have to use Git on a daily basis to become a Master...

Collapse
mittalyashu profile image
Yashu Mittal
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

Thanks for your suggestionssmuschel.

Can you suggest few git books? I have already triedtry.github.

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
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

With book I meantthis 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
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

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

Any different way?

Thread Thread
smuschel profile image
smuschel
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

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

Collapse
thomaswdmelville profile image
Thomas Melville • Edited
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

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 foundthis articlegood
Collapse
mittalyashu profile image
Yashu Mittal
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

Thanks for your suggestionThomas Melville.

Already tried, didn't work. 😅

Collapse
thomaswdmelville profile image
Thomas Melville
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

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
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

Yeah, working on that part only. 😅

Collapse
anishkny profile image
Anish Karandikar
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

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
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

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
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

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 againgit commit -m "Hello world".

Collapse
mittalyashu profile image
Yashu Mittal
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

Thanks for the suggestiondavid karapetyan,I will definitely trylearngitbranching.js.org.

Collapse
yo profile image
Yoginth
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

GitHub Lab -lab.github

Collapse
rhymes profile image
rhymes
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

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

Atlassian'sAdvanced Git Tutorials

Collapse
mittalyashu profile image
Yashu Mittal
html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http:// w3.org/TR/REC-html40/loose.dtd"

Thanks for the suggestionrhymes,I will definitely consider it.