Answers for "git commands to push code to github"

2

how to push local code to git repository

Create a new repository on the command line
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/neetigyachahar/codebox.git
git push -u origin main
Posted by: Guest on July-16-2021
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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language