Answers for "git push to remote repository url"

3

push new local repo to remote github

# Create a new repository on the command line
//Just one note: if the repository doesn't exist in Github, first you will have to create it: https://help.github.com/articles/creating-a-new-repository/
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
 
# Push an existing repository from the command line
 
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
Posted by: Guest on July-07-2021
0

how to push code to another remote git repository

git remote rename origin upstream
git remote add origin URL_TO_GITHUB_REPO
git push origin master
Posted by: Guest on January-05-2021

Code answers related to "git push to remote repository url"

Browse Popular Code Answers by Language