Answers for "how to connect repo to github"

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
11

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
Posted by: Guest on April-30-2020
5

add github repo

create a new repository on the command line
echo "# {Repo Name}" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/cdcdianne/ReactJS-TheMovieDB.git
git push -u origin main
                
push an existing repository from the command line
git remote add origin https://github.com/cdcdianne/ReactJS-TheMovieDB.git
git branch -M main
git push -u origin main
Posted by: Guest on November-13-2020
2

connect to github repository from terminal

to connect your repository from your terminal to your github requires you
1) Create a github repository than
2) Open Terminal
3) You will initilize git and make a branch with: git init -b main
3) Followed by the command: git add . - this adds all your edited work.
4) Followed by a Commit Command: git commit -m "this is my work" - used for 
merging
5) At the top of your GitHub repository's Quick Setup page, click  to
copy the remote repository URL.
6) In terminal add the repository URL where your local repository will be
pushed to: git remote add origin  <REMOTE_URL> - sets the new remote
7) git remote -v -Verifies the new remote URL
8) Push Changes in local Repository to GitHub: git push -u origin main -
Pushes the changes in your local repository up to the remote repository 
you specified as the origin
Posted by: Guest on March-19-2021
4

git push existing code to new repository

git remote add origin <remote repository URL>
Posted by: Guest on May-28-2020
0

how to connect git repository

Git clone "repo-link"
Posted by: Guest on June-08-2021

Code answers related to "how to connect repo to github"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language