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

  Рет қаралды 18,538

The Code City

The Code City

3 ай бұрын

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.buymeacoffee.com/thecodecity
🌐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.

Пікірлер: 12
@fredaotto8622
@fredaotto8622 Күн бұрын
Thank you very much, this was helpful.
@MrMackster01
@MrMackster01 23 күн бұрын
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!
@heshamahmad4101
@heshamahmad4101 6 сағат бұрын
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
@metaru_cd
@metaru_cd Ай бұрын
Thank you very much, this tutorial helped me a lot
@dimasalanta
@dimasalanta Ай бұрын
thanks for this tutorial!
@TimHuza
@TimHuza 4 күн бұрын
Thank You so much that was really helpful!
@TheCodeCity
@TheCodeCity 4 күн бұрын
Glad it helped! thanks for watching :)
@00nobody001
@00nobody001 27 күн бұрын
Thanks!
@SyedMoinuddinycs
@SyedMoinuddinycs 26 күн бұрын
thanks bro
@madtorture3188
@madtorture3188 23 күн бұрын
thanks!!!
@thushankalana4940
@thushankalana4940 10 күн бұрын
Thank you❤
@TheCodeCity
@TheCodeCity 6 күн бұрын
Thank you for watching! Glad it helped! :)
How Push to Github from Command Prompt/Terminal (2024 Update)
4:53
Learn Git In 15 Minutes
15:59
Colt Steele
Рет қаралды 2 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 33 МЛН
MEU IRMÃO FICOU FAMOSO
00:52
Matheus Kriwat
Рет қаралды 46 МЛН
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 82 МЛН
How to Undo a Pushed Git Commit - Reset & Revert a Git Commit After Push
12:25
How to Push Code to Github from Visual Studio Code (2023)
9:00
The Code City
Рет қаралды 101 М.
Using Git & GitHub in VSCode: Stage, Commit, and Push
14:51
Max on Tech
Рет қаралды 29 М.
How To Use GitHub + VSCode: Create a Repository & Merge Changes With a Pull Request
6:05
Software Engineer Tutorials
Рет қаралды 143 М.
How to push changes from visual studio code to GitHub | Tech Projects
4:10
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 554 М.
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1 МЛН
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 23 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,5 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 1,9 МЛН
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,2 МЛН