Answers for "ways to push to github"

6

how to push code to github

git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin 'http github link'
git push -u origin master
Posted by: Guest on April-13-2022
1

push to github

git init
git add .
git commit -m "first commit"
create a new repository on the command line
git branch -M main
git remote add origin remote_repository_URL
git push -u origin main
push an existing repository from the command line
git remote add origin remote_repository_URL
git branch -M main
git push -u origin main
Posted by: Guest on March-01-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language