Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to push a project to github

#How to push a repo to an existing
  git init
  git add .
  git config --global user.email "<your-github-email>" && git config --global user.name "<your-githb-username>"
  git commit -m "<>"
  git remote add origin <repohttps>
  git remote -v //to confirm
  git branch main master -f && git checkout main //'do this if gits default branch is master'
  git push origin main -f
Source by github.com #
 
PREVIOUS NEXT
Tagged: #push #project #github
ADD COMMENT
Topic
Name
3+8 =