Title: How to upload files to GitHub from Git Bash on Windows [from scratch]
Write code like a Pro with AI-Powered code assistant plugin 👉 [ Ссылка ]
Description:
In this video, we are going to learn how to upload files(source code) from windows to Github with Git Bash.
Pre-requisite:
1)Github account(To sign Up [ Ссылка ])
2)Gitbash installed on your machine (To install git bash [ Ссылка ])
Install git bash on your machine and launch it.
Go to [ Ссылка ] and create a Repository. Copy the repository link and save it to your notepad.
Below are the commands we are going to use to upload files to GitHub with Git Bash
ls
cd
git init
git remote add origin [gitLink]
git remote -v
git add .
git commit -m "First commit"
git push origin master
ls- List all the files in the current directory
If your source code is in the different directory, you need to change the directory on git bash with command cd followed by directory or path.
cd - To change the directory
git init- This command initializes the git in the given path. You can see the .git hidden files after this command gets executed.
git remote add origin [gitLink]- gitLink denote the place where your code is stored in the remote repository
git add .- Add all the files in the local directory to the remote repository
git commit -m "First commit"- It establishes a connection with local repository
git push origin master- It establishes a connection with a remote repository and upload your source code or files to GitHub
Note: If you get fatal: remote origin already exists which means the connection is already established.
Above method helps to push files or project folder to GitHub using the command line.
********** Tutorial Playlists **********
Google apps script tutorial for beginners- [ Ссылка ]
Automate internet explorer with VBA- [ Ссылка ]
Autoit tutorials for beginners- [ Ссылка ]
Selenium Webdriver tutorials for beginners -[ Ссылка ]
****** Contact me ********
Blog: www.amarindaz.com
FB page: [ Ссылка ]
******* Books written by me ********
Autoit tutorials for beginners: [ Ссылка ]
Excel VBA for beginners: [ Ссылка ]
******* Productivity tool *********
My Favorite YouTube Tools ➜ [ Ссылка ] and ➜[ Ссылка ]
******* Gear Used To Shoot This Video ******
_Audio & Microphone
[ Ссылка ]
********Learning partner********
Video courses ➜[ Ссылка ]
Subscribe and stay tuned!
💼 To Hire Me 👉 [ Ссылка ]
Checkout my app 👉 [ Ссылка ]
Ещё видео!