How to Commit and Push to Github from VSCode (2024 Update)

preview_player
Показать описание
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:

🌐Connect with me:

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"
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.
Рекомендации по теме
Комментарии
Автор

git commit -am"" is cool because it bypasses a need to do git add because it tracks changed files. Nice video!

bartwinston
Автор

Thank You so much that was really helpful!

TimHuza
Автор

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!

MrMackster
Автор

Thank you very much, this tutorial helped me a lot

metaru_cd
Автор

Thank you very much, this was helpful.

fredaotto
Автор

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

heshamahmad
Автор

awefull, 0 point. better don't make nothing than this.

zeljkoferber