How Push to Github from Command Prompt/Terminal (2024 Update)

Описание к видео How Push to Github from Command Prompt/Terminal (2024 Update)

In this video, I'll show you how you can push to Github from command prompt/terminal.
To push to github from command prompt, you need to first open command prompt in the project directory, or change directory to project directory after opening the command prompt or terminal.
Before pushing to github, we need to make sure git is installed in your system, if git is not install check out this video:

Install Git:    • How to Install Git 2.4 on Windows 10/...  

☕Buy me a coffee: https://www.buymeacoffee.com/thecodecity
🌐Connect with me:
- TikTok: tiktok.com/@thecodecity
- Twitter:   / thecodecity  
- Instagram:   / thecodecity  
- Website: https://thecodecity.com

Steps to Push to GitHub from Command Prompt:
1. Open Command Prompt in Project Directory / CD to Project Directory
2. Initialize local repository
3. Add the files to be tracked by git: git add .
4. Commit the changes: git commit -m "your message here"
5. Add Origin: git remote add origin git-repo-link.git
6. Push to github: git push -u origin master

By the end of this video, you'll have pushed code to GitHub from Command Prompt, if you have any problems let me know in the comments below.

#github #git #gittutorial #githubtutorial

Комментарии

Информация по комментариям в разработке