Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

push an existing repository from the command line

cd #existing_dir
git init
git remote add origin https://github.com/ #Repo
git branch -M main
git push -u origin main
Source by docs.github.com #
 
PREVIOUS NEXT
Tagged: #push #existing #repository #command #line
ADD COMMENT
Topic
Name
5+2 =