Answers for "git push local repository to remote"

3

git push current project to master

git init
git add .
git commit -m 'First commit'
git remote add origin <remote repository URL>
git push origin master
Posted by: Guest on December-09-2020
2

git push origin

git branch -M main

then

git push -u origin main

or 

git push -f origin main

or 

git push origin master --force
Posted by: Guest on March-16-2021
1

git push remote

git push -u origin master // where 'master' is branch name
Posted by: Guest on March-18-2021

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language