Git Tutorial for Beginners: Learn Git in 1 Hour

2,412,758
0
Published 2020-09-15
Git: The essential tool for modern development. πŸ”§ This quick explainer shows why it's a must-have skill.

πŸ”₯ Ready for a deep dive?
- Check out my full course: mosh.link/git-course
- Subscribe for awesome coding content: goo.gl/6PYaGF

πŸ“• Get my FREE Git cheat sheet:
mosh.link/git-cheatsheet

βœ‹ Stay connected:
- Twitter: twitter.com/moshhamedani
- Facebook: www.facebook.com/programmingwithmosh/
- Instagram: www.instagram.com/codewithmosh.official/
- LinkedIn: www.linkedin.com/school/codewithmosh/

πŸ’‘ Why Git?
- Track code changes over time.
- Collaborate with other developers easily.
- Revert to older versions if something breaks.
- Essential for software & DevOps engineers.

πŸ“– TABLE OF CONTENTS
0:00:00 Introduction
0:00:35 What is Git?
0:03:07 Using Git
0:06:11 Installing Git
0:07:38 Configuring Git
0:12:43 Getting Help
0:13:35 Cheat Sheet
0:14:05 Taking Snapshots
0:14:38 Initializing a Repository
0:17:10 Git Workflow
0:21:46 Staging Files
0:25:24 Committing Changes
0:27:37 Committing Best Practices
0:30:21 Skipping the Staging Area
0:31:46 Removing Files
0:33:48 Renaming or Moving Files
0:36:06 Ignoring Files
0:42:41 Short Status
0:45:33 Viewing the Staged and Unstaged Changes
0:50:33 Visual Diff Tools
0:55:27 Viewing the History
0:57:39 Viewing a Commit
1:01:37 Unstaging Files
1:04:28 Discarding Local Changes
1:06:17 Restoring a File to an Earlier Version

#git #devops #coding #softwaredevelopment

All Comments (21)
  • @tuftymink
    Just wanted to shout out how great this courses are. I was depressed and wasn't happy with my previous career, I wanted to change things and find something to be exited about and make a career with it. I don't count myself smart and my previous job was a seafaring one, so I had no idea. The this summer I found your Python tutorial, bought couple more full courses and now making slow progress, even found a starting tech support job. It's not much, but I feel really great and want to aspire to become a developer. Thank you so much, it's fantastic how you help people! Best wishes :)
  • This one hr of course is much easy to understand, best animation helped to make things visualise better and ofcourse the pace of the course is appreciated. Looking forward to get the full course of 5hrs
  • Mosh your voice is so soft and soothing. You are like the everyone favourite drawing teacher meets and intelligent harvard professor.
  • Hey mosh hope you are doing great, i want to thank you for making such courses. Thanks a lot.
  • Mosh has taught me a lot of things, you deserve credits! Good luck Mosh, keep growing!
  • @lollllloro
    52:17 You evaluated the bash variables LOCAL and REMOTE, which did not exist or were empty, leaving you with the string with two spaces after --diff. I like to mostly use single quotes when I don't need bash to evaluate anything in the string, but you could have escaped the dollar signs with backspaces as well if you want to stick to double quotes.
  • Mosh I just love your tutorials, they are easy to understand and very beautifully designed. Thank you for this course.
  • @bimal.subedi
    Hit one like for all the hard works of Mosh just for us β™₯️
  • @Imtiaz27
    Very grateful to you for making such simple and amazing tutorials <3
  • @johnwise7931
    Dear Mosh, I'm a beginner programmer, and this video was extremely helpful. Thanks for putting in the hard work to produce this video!
  • @jacktembo
    World class Course. This guy is really good at teaching coding stuff. Look at the English he speaks. so amazing. He speaks good english in all his courses
  • @omarsuleiman9109
    Thanks for making all videos easy to be engaged and not dry/boring. I love your energy, color selection, and delivery. keeps me engaged every moment of the video.
  • @konnli1
    Thank God for you. You make these tutorials so simple and straight forward. Love them
  • @evert-arias
    Great video Mosh. I've been using git for years, and I've learned a couple of new things from this video. Thanks for such great content.
  • @vinodtiwari1
    Hi Mosh, You are one of great instructor that I have ever seen.the way which you explain is awesome and direct hit to our thought process.
  • @scottwilson1620
    Great Video Mosh! Just prepurchased the full Git Course. Appreciate you offering fantastic courses at such reasonable prices. You the best ❀
  • Im around three quarters of the way through the git ultimate course and I have to say its sooooo good. Pacey but thorough. The time spent explaining different merge types is fantastic. The most useful part, for me was creating new branches on remote/origin correctly, something I constantly struggled with. I already have Senior Engineers at work asking me about "git log --oneline --all --graph". Amazing as always Mosh, if you keep releasing content like this we might just make it!