Git Tutorial for Beginners: Learn Git in 1 Hour
HTML-код
- Опубликовано: 6 июн 2024
- 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: bit.ly/33ToxxU
- Subscribe for awesome coding content: goo.gl/6PYaGF
📕 Get my FREE Git cheat sheet:
bit.ly/33rnYLt
✋ Stay connected:
- Twitter: / moshhamedani
- Facebook: / programmingwithmosh
- Instagram: / codewithmosh.official
- LinkedIn: / 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
🔥 Ready for a deep dive?
- Check out my full course: bit.ly/33ToxxU
- Subscribe for awesome coding content: goo.gl/6PYaGF
Hit one like for all the hard works of Mosh just for us ♥️
For that I have hit like on the video itself
A like for this comment or this video?
28 thousand + likes later. & Still deserves more
good job, you have remembered me successfully!
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 I just love your tutorials, they are easy to understand and very beautifully designed. Thank you for this course.
Yes!!
Mosh has taught me a lot of things, you deserve credits! Good luck Mosh, keep growing!
Dear Mosh, I'm a beginner programmer, and this video was extremely helpful. Thanks for putting in the hard work to produce this video!
how is it going pal?
@@rhowie.dearest he quit
@@dovydasbalciunas5002wait, really? 😮
:))))
@@dovydasbalciunas5002
For mac user:
to add vs code to your path:
- open vs code
- shift + command + p
- search for (shell command: install 'code' command in PATH )
Then you just configure it to git according to our teacher, Mosh
what a save, thanks!
thank you so much!!
thanks!
It works. Thank you
thank you soooooo much
Hey mosh hope you are doing great, i want to thank you for making such courses. Thanks a lot.
Mosh your voice is so soft and soothing. You are like the everyone favourite drawing teacher meets and intelligent harvard professor.
Great Video Mosh! Just prepurchased the full Git Course. Appreciate you offering fantastic courses at such reasonable prices. You the best ❤
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.
Do you want to become a successful software developer?
Simple, just be positive, patient and follow Programming with Mosh
. Cu
Xam t l
It will really help beginners to get started with Git. Thank you very much Mosh. I have shared it on LinkedIn and tagged you. Keep on creating such amazing content for the programmers. Take care and stay blessed.
This is an awesome tutorial on Git. I also bought the full course. Mosh has an amazing way of simplifying complex topics. I'm thoroughly enjoying this!
Very grateful to you for making such simple and amazing tutorials
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!
are you a senior yet?
I'm waiting for a vacancy to open up at work, and I'll be applying in 2024
Thank you Mosh for this easy-to-comprehend tutorial! It was very helpful.
As someone completely new to Git and coding in general, thank you for this video. I wish you would've went over branching, merging, forks, and pull requests, but I guess that's what your full tutorial is for. Thank you!
Hey! How is it continuing to go for you? I just started as well and it’s a bit intimidating but I’m catching on to HTML pretty quickly. I am utilizing a course through Udemy.
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.
Hi Mosh, You are the best teacher ever. All your courses are clear, straight to the point. We are just waiting for Django course.
Me too. Please make a Django course.
yes mosh please upload a django advance course on your codewithmosh.com. I just bought all access subscription two days ago and learning git there you are great teacher.
I actually wanted this because I've been working on git lately and I love the 60fps part of this video also. Thanks once again Mosh!
@@programmingwithmosh Sure Mosh!
Thank God for you. You make these tutorials so simple and straight forward. Love them
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.
This is AWESOME! I left the IT industry some ten years ago, your courses are really helping me get back up to date.
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
hey mosh just thank you, i was very confused about git and git hub, watched a lot of tutorials never understood a tiny of it.
i came straight to youtube and searched you.
thank you
Oh man, needed this one so much, going to put that all access suscription to so much use (going through Ultimate Java part 2 now) Thanks Mosh!
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.
This was a great course. Thanks Mosh. Can you please do a similar tutorial for data analysis and machine learning application in AWS? There isn't a really good course on that in RUclips.
thank you mosh for completing the git part, please complete the design patterns part 3 as well, that is the only course left over in your series
Great video Mosh! Very entertaining and informative. Thanks a lot!
When Mosh is explaining it's as if he comes in your mind and organize everything for you and explain it to you and you end up thinking as if you're the one who created git lol. Mosh is the best teacher for programmers.
@@programmingwithmosh Why did you make the penis symbol?😂
@@programmingwithmosh mosh do you have any academy or training center other than online platform
@@bullymaguire3867 bruh, it's a sideways heart lol
Yeah!
Very strong presentation. Checked the curriculum for the full course, and I think it may be well worth paying for the remaining chapters. The info can be found elsewhere, of course, but never presented with the same clarity and confidence.
The clarity! Makes it easy to grasp the concept and understand!!!
Best RUclips channel to learn programming by far!!..Thanks Mosh!..greetings from Colombia 😘
Enrolled for full course. Very helpful. Thank you. Each video starts and ends on topic. No seconds wasted for welcome and thank talk. Great tutorial.
bro can you text me ? we can share the course ill pay you half fee
9:33 vscode
10:26 default editor
20:13 deleting file from staging_area (with git add)
22:14 creating, adding files
26:06 comitting
Hi Mosh, You are one of great teacher that I have ever seen.
This video was incredibly helpful. Thank you for your great advice and the video graphics were also very simple and informative.
Mosh you are amazing! I was looking for a tutorial just like this. Thank you very much!
This is still one of the most comprehensive Git course… thank you so much Mosh!
The best git basic tutorial I have watched still. Someone know what software he uses for animating his videos?
Mosh: this is a great tutorial for beginners (and some of us who skipped around on the way to "intermediate"). Going to sign up for your full course. My only regret: got sidetracked setting up Powerline on my machines, because that's something very few systems people could resist (well, some developers seem to have greater self-discipline).
one the best and well described git tutorials that I ever seen in the RUclips!
There are 2 types of viewers :
1. They really needed this video
2. They wanted the flutter course
BTW, good job if your taking advantage of the pandemic by learning how to code. #stayathome
Correction. There are 3 kind of viewers. Those that you already mentioned, and the ones, like myself, that are still waiting for the "Design Patterns Course" to be finished... AFTER ALMOST A YEAR!!!
The best thing I like about your videos is QUALITY and SIMPLICITY. THANK YOU MOSH🙂
Great video! Thanks for the information on git and all the great helpful shortcuts for the mac command line!
Thank you for this tutorial! It made git seem much easier to work with! I will probably end up subscribing to your course collection
Swear of God I smiled after watching the video title. I was waiting for the Git tutorial by one and only Mosh!
#WELOVEYOU🇧🇩
@@programmingwithmosh Keep making videos and let us smile 😀 Allah will help you.
@@mobinal5429hey your bengali?! Let's connect! I am also learning
@@bengalichic9333 Yeah I am... 🇧🇩
@@mobinal5429 ye bhi theek hai
Sir i can't express my deepest gratitude for the courses and your wholeheartedness, willingness to help .love your courses.keet it up Sir
Beautifully explained.
Thanks Mosh.
You rock dude!
i've never seen such a brief tutorials like yours . i loved it . much thanks :)
dear mosh
Thanks!! This is one of the best.
The pace and timeline was just perfect in the video.
The content quality is super exceptionally good.
I am glad that i found this video.
Thanks a ton MOSH!!!
Dear Mosh, it is one of the best and most enhanced tutorials I have ever seen, overall! Not only in git.
Your graphics are so smooth and awesome. What tools did you use, if not a secret? I would like to create something like that for an Embedded C tutorial. At least, just listing the tools would suffice and I would google them to learn and create as awesome tutorials as yours.
do you know the theme he used for "zsh with git"..?
@@sairam3351Sorry, brother, not aware for now. I will inform you as I get it.
Now I see why you were off for a long time. You were preparing a great content for us , thanks a lot Mosh.
This is the best beginner friendly tutorial no doubt. The presentation is also enjoyable. Thank you.
Mosh has beautiful animation on his videos 🔥
@@programmingwithmosh can u do on angular course new version please angulat11
Mosh, your tutorials are so easy to follow. I will continue supporting you.
How do you get your terminal to look the way it does and which font do you use?
Would like to know this as well
This is the first tutorial I have ever bought from a RUclips video and what a steal!
Thank you Mosh! Your lessons are really easy to understand
Hey Mosh , thank you for all the great work you do for your students.
I was wondering if you're planning to make a course especially about architectural pattern and deliver it in java language ?.
Or any thought about android programming with java and android studio ?.
Thanks . Love from Iran ❤
Hey, Mosh. I love your tutorials. They are so clean, detailed and beyond helpful. I do have just one suggestion. As a beginner I was supper confused about adding visual studios code to path. Could you put how to do so. When I finally found how to do it, it was very simple and took a short time. Other than that this was perfection. **for the people that got confused around **9:30**** go to visual studios code, Hit Cmd+Shift+p to pop open the command palette. Then start typing Shell Command ... until the Shell Command: Install "code" command in shell PATH option appears. Select this and Code will add code to your path.
Thank you!!!
kindly explain further ive pressed cmd+shift+p but the command pallete didnt pop up
Are you able to advise on the non Mac instructions
@@nikkyle5979 visual studio code should be the same on both Windows and Mac. For Windows use the Control button instead of Command!
I can surely say that is most understandable git tutorial for beginners. thanks mosh!
Mate, you made it so simple to understand. Just bloody awesome. Thank you so much.
This is amazing! Flutter soon please!!
Please Flutter course also 🙏
Hello Mosh,
Thanks for the great video, it helped me a lot to refresh some of the things. One unrelated question if I may - which zsh theme did you used in this video?
I think it's called agnoster
after spending hours searching on the internet , finally I find this wonderful video that make everything clear .
thank you very much .
This is so easy to follow and helpful. Thank you!
Hey Mosh, great Video.Thank you. One Question, how do you display the file path in this graphical way in your terminal?
powerline and powerlevel9k
What software's do you for screen annotation, magnification and cursor/cursor click highlighting?
This was incredibly helpful, thank you!
Great tutorial... I was looking for a more practical and clear tutorial.. yours is very engaging and easy to understand... Great job Mosh.
believe me or not I was typing in youtube what is git then I got the notification...omg☺️☺️☺️😮😮😲😲😲
Really
@@SanjuKumar-ye8xz yeah... i was like too amazed
Same But I Took Udacity Free Git Version Control From Which I Am Not Very Impressed 😅
@@zainhanif2726 wow
outdated joke bro
We missed you Mosh, thanks for this. And if you could do a course on machine learning. Thanks in advance.
Thank you for this excellent introduction!
You know for spending your time doing all this content for free is just I don t know wordless. I do learned a lot and just want to thank you for helping us understand things that we have interest in. God bless you.
15:52, if "open .git" does not work on Windows try using the "start" command instead
Thanks, it works
thank you
Hey Mosh. Great tutorial. May I ask what theme you are using for your git shell? I tried all the ones from posh git but they don't look as useful as what you're using.
Yes please I want your theme as well!
@@patrickjreid The theme is called agnoster.
Absolutely well done and definitely keep it up!!! 👍👍👍👍👍👍
The way you make this so easy to understand is a skill in itself. Thank you. The video at uni was very ordinary, never have I said OH so many times
Hii Mosh,just want to tell you tha u
missed the part of how to connect git to your github account and push ,pull or clone files. Please make a video on that too ,will be a great help😊.
Search The Net Ninja Git Tutorials
It's part of his full git course. He's not gonna give everything away for free 🤣
How to get your colorful command promt?
This is so high quality thank you for uploading this
thank you, sir. I have been waiting for this from a long time
Can we have a video on customising terminal so that it looks like yours.
He is using ZSH with ohymyzsh
@@alephanull1953 do you what theme is that? The most similar I found was PowerLevel10k, but it is not the same.
I actually found it frustrating because I don't have the same interface -- terminal doesn't show the current branch
@@viniciusmolinagarcia6603 agnoster, sorry for the late reply
@@viniciusmolinagarcia6603 PowerLevel10kis the best imo
How can I get my terminal to look like that?
I'm a student all away from Uganda but 'Mosh' in my language we say olimubede which means you mingo it, u crush it, u at your own level, u the best in all programmers man, u really a good teacher thank u man, we appreciate your effort , may GOD provide u more effort forever and we at ur back man, THANK YOU
Your lectures are always helpful for studying programming , thanks!
@15:50 use command 'explorer .git' if you are on Windows OS. Command 'open' doesn't work on Windows!
Thanks a lot!!!!!
I was looking for this, thanks!
Hi Mosh, just want to know will there be Dart/Flutter tutorial coming up in the future?
An intermediate Flutter tutorial would be great as flutter itself is so self explanatory.
Yes same here
@@programmingwithmosh hi mosh i already subscribed for your course in codewithmosh but this course is not included ..why?
@@programmingwithmosh plz make it next month 🙃
@@TheJuniorDeveloper same problem
Great Intro to Git. Subscribed for the Full Course.
thanks Mosh
After Completation of this course i am here to say that this course is super useful for beginners everything is cleared .
Thank you Mosh💕
You are amazing teacher ever I meet
Please make the tutorial of how to install posh-git on windows
just use git bash
Install? I'm sure there's plenty of posh gits in your area... They seem to not like England 😉
15:50 on windows it "start .git"
you angel
This was a pleasure of a tutorial. Thank you!
Thanks a lot, I love the way you explain things.
Please make django course after this.
You can check " coding for entrepreneurs" and "just Django".
This two channels have full django courses
Yes Django full course
@@programmingwithmosh I guess it is going to come in 2022
@@programmingwithmosh Cover Django Rest Framework too please
@@programmingwithmosh THANK YOU, I LOVED THE DJANGO PROJECT #3 ON THE PYTHON COURSE BUT I NEED A FULL ONE
Hi, how can I make the zsh prompt line so beautiful?
Install zsh , ohmyzsh, powerlevel10K zsh theme, install nerd fonts( example FIRACode NF) .
@@madhankumar2051 Thank you, Mr. Kumar.
@@madhankumar2051 thx
You were meant to be a teacher. Amazing tutorial and thank you!
Hey thank you so much.I always look for ur courses cause they seems very easy for understanding & I do always recommend to my friends and colleagues .