How to Commit and Push to Github from VSCode (2024 Update)
Вставка
- Опубліковано 5 жов 2024
- In this video, I'll show you how you can commit and push code to github from vscode. Visual Studio Code (vscode) is a very popular IDE to write code, and it can help you to commit and push code to github without leaving the editor.
You'll need to have git installed in your system in order to push code to github from vscode. If you don't have git already installed in your system, check the video below:
Install Git: • How to Install Git 2.4...
☕Buy me a coffee: www.buymeacoff...
🌐Connect with me:
TikTok: tiktok.com/@thecodecity
Twitter: / thecodecity
Instagram: / thecodecity
Website: thecodecity.com
Steps to commit and push to Github from VSCode:
1. Initialize local repository
2. Add the files to be tracked by git: git add .
3. Commit the changes: git commit -m "your message here"
4. Add Origin: git remote add origin git-repo-link.git
5. Push to github: git push -u origin master
By the end of this video, you'll have commited code in your visual studio code, and have pushed code to github from within vscode.
If you have any problems, let me know in the comments below.
✌If this video helped you, consider buying me a coffee so I can continue making free helpful videos: www.buymeacoffee.com/thecodecity
Thank you for watching! ✌
You have explained the problem I encountered. I have successfully pushed and host my assignment. I appreciate this video a lot.
really straightforward and useful thank you 👍
Good tutorial- it might help if you ‘clear’ in the terminal as the code you’re typing is hard to see at the bottom on the screen! Otherwise great video!
Noted
Legend, thank you my indian friend. - Your American friend
git commit -am"" is cool because it bypasses a need to do git add because it tracks changed files. Nice video!
FALSE!!!! U LIAR!!!!
Thank You so much that was really helpful!
Glad it helped! thanks for watching :)
This was so helpful, thank you!
Thank you very much, this tutorial helped me a lot
Great video, Helped me a lot.
Thank you very much, this was helpful.
finally someone explained to the point and it really worked for me...I just want to know how i will push later again if i created multiple files and all at a time.... although i tried : git add file_name
git commit -am ""
git push origin master : and it added a single file but don't know if need to push multiple at a time
To add multiple files: git add .
it's work love u sir
2 questions. What is -am . And what is the difference between git add and git commit?
excellent explanation thanks
Appreciate you man
thanks for this tutorial!
Short precise everything nice
good job. very helpful
Thank you for watching, glad it helped. Have you checked this on our new channel? ua-cam.com/video/_fGZd1luSN8/v-deo.htmlsi=G9iVRwfmvK5wnTn_
Sir after entering the cmd git add . I got an error like 'frontend/' does not have a commit check out ..
What to do for this
Please help
Thanks mate
Thank you bro your are so great bro superb
Thank you for watching! Glad it helped :)
Thanks 👍
God bless you🎉🎉😊😊
How to use without command inside vscode
do a video for Mac users
THANK U
Useful
Thank you for watching! Glad it helped :)
thanks bro
thanks!!!
ty bro
Thank you for watching! Glad it helped :)
you are hero
Thank you for watching! Glad it helped :)
awefull , 0 point. better don't make nothing than this.
O.k
hard to understand indian accent
O.K
@@TheCodeCity hhh nvm Just kidding
@@TheCodeCity Distinctive accent
it's a nepali accent that is very clear, wellspoken and easy to understand, get your dumbass outta here.
Thanks!
Thank you❤
Thank you for watching! Glad it helped! :)