Answers for "how to add local repository to github"

13

git push existing repo

cd existing_folder
git init
git remote add origin https://gitlab.com/abc.git
git add .
git commit -m "Initial commit"
git push -u origin master
Posted by: Guest on August-26-2020
7

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
Posted by: Guest on May-03-2020
0

How to create a local repository and push to github repository

echo "# kiels-excel-sheets" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/kielSDeM/kiels-excel-sheets.git
git push -u origin main
Posted by: Guest on July-19-2021
1

create new repository on the command line

git init
git add README.MD
git commit -m "commit message"
git remote add origin git url_of_github_repo
git push origin master
Posted by: Guest on June-08-2020
-2

how to add a repository to github

git & github
Posted by: Guest on January-21-2021
-3

how to link a repo to a project on github

$ git init
Posted by: Guest on December-10-2019

Code answers related to "how to add local repository to github"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language