Shell/Bash: how to upload a files to a repository on github using gitbash Example

By

Shell/Bash Example: This is the "how to upload a files to a repository on github using gitbash" Example. compiled from many sources on the internet by SimpleTutorials.org

How to upload a files to a repository on github using gitbash

git init
git add .
git commit -m "message for the commit"
git remote add origin https://url-of-github-repo
git push origin master or git push -f origin master

push code to github command line

git add .
git commit -m "message for the commit"
git remote add origin https://url-of-github-repo
git push origin master


* Summary: This "how to upload a files to a repository on github using gitbash" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others