Using Git & GitHub in VSCode: Stage, Commit, and Push
ฝัง
- เผยแพร่เมื่อ 12 ก.ค. 2024
- Hi everyone, in this video, we'll cover the basics of using Git and GitHub with VSCode.
◾◾◾◾◾ Related Content ◾◾◾◾◾
Branches, Pull Requests, and Merging in VS Code:
• Using Git & GitHub in ...
◾◾◾◾◾ Timestamps ◾◾◾◾◾
00:00 | What we'll cover?
00:23 | Why use Git?
00:44 | Git vs. GitHub: What's the difference?
01:07 | Check Git Version and Path
01:55 | Setup a Git Repository (Initialize)
03:48 | Tracking and Discarding Changes (Add)
04:46 | Saving Changes (Commit)
06:07 | Publish to GitHub
08:57 | Make Changes to Remote GitHub File (Commit & Push)
10:26 | Sync Changes from GitHub to Local File (Pull)
11:45 | Staging, i.e., Choosing Changes to Commit (Stage)
◾◾◾◾◾ 🌎 Let's Connect! ◾◾◾◾◾
🐦 Twitter (X): 🔗 / @max_on_tech
📂 GitHub: 🔗 github.com/maxontech
🔊 Discord: 🔗 / discord
🏹 ProductHunt: 🔗 www.producthunt.com/@m4x
✅ Blog: 🔗 maxontech.io/courses
◾◾◾◾◾ Hashtags ◾◾◾◾◾
#Vscode #Stage #Commit #Push #Git #Github
thank youu! this really helped me understand git, its short and direct to the point unlike other vids
I watched so many videos on that, as a baeginner i can say that yours was by far the easiest to understand. Thanks a lot!
hey, that's awesome! keep going 💪:)
Wonderful tutorial Max and thank you. I've been a dev for many years but am only now moving to VS Code and Git, primarily working with Django. You have saved me a lot of time and effort and for that I am very grateful. You have a wonderfully calm way of teaching and your efforts are much appreciated. Cheers from a new Aussie sub in Sydney - Dave
hey, thanks for the kind words! all the best dave 🫡
As a self-taught dev, this is simple, straightforward, and really easy to understand.
why in my vs code there is no .git??
Thanks for your clear way of explaining things.🥰
Hey sagarr! that's awesome will be making more soon!
Thanks brother, it really helps to understand basic knowledge ❤❤❤❤
welcome! very glad that it helps
This video was really helpful not going lying, but I had to go watch another on how to config git to continue the video, thanks
hey thanks for the feedback :)
Good stuff 👍👍
thanks :)
I don't know if you'll ever read this, but thank you very much Max. Loved the video, how you presented the video, your voice, your slow and and friendly approach taking in the total newbies like me into consideration.
For another video, maybe make sure to stop and clearly define some important common words you use in the video and are vital to the software/ Vscode here. For example, you Max might understand what Push, pull, staging means, but if you could further go and search, explain them with analogies and maybe even put the m in the description, that would be great. I think you very well explained "commit" meaning "saving permanently".
By watching it the first time, I became so much preoccupied with pausing the video and doing what you do that I could not finish the video, so I thought maybe this is a total waste of time and "JUST" watch the video please:
Watch the video in its entirety one time with minimal to no pause to get the gist
Then watch the video back and try to replicate what Max/ TH-cam is doing
More to read ...
I am genuinely curious to know about how other people watch videos. Some people close to me might say oh you overcomplicate everything, oh don't be a perfectionist, but I feel like it is within me to not be able to do things inefficiently. Like why would a 100 people or many more find this video really helpful and even be able to replicate what Max is doing, but I take much more trial and error, it might be that I did not deal with any of these softwares, even MS office until age of 19.
I will however just accept it, be grateful to god that I am this diligent and willing to learn and work. Life is all about detecting and solving a problem
Thank you Max
Haha, that's awesome! Love these comments as they encourage me to level up and continue!
Here's a short answer to the words you mentioned:
Push: Is similar to sending your changes to a shared space. When you "push" your changes, you send your changes to that shared space (e.g., GitHub) where others can see it.
Pull: Allows you to get the latest changes made by others from the shared space (e.g. GitHub). When you "pull," you're grabbing the most recent updates from the shared space to your own workspace (i.e. your VSCode editor).
Staging: Picture a space on your local device for things you want to share in the future. Staging is like preparing your changes before pushing them to the shared space. You put only the specific changes you want to share in this staging area, ensuring you don't accidentally share something you didn't intend to.
Thank you 🎉🎉
welcome 😃
welly explained. i have subscribed sir.
hey, awesome ! Thanks
thanks a lot :))!
You're welcome! Glad it helped!
👏👏
:)
It's Visual Studio Code not Virtual Studio ..........other than that the video is superb!!
true :) got them confused haha. But glad the video helped!
How do you make a video about Git and Vscode and not mention or cover setting up global config? I was familiar with it from Linux but forgot about it and had to set it up here, but how do you NOT even mention it? You also take git bash, etc for granted as well. If someone needs to watch this video in the first place, I can assure you these things are worth mentioning.
1:24 for mac users:
which git
/usr/local/bin/git
thanks :)