Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

push an existing repository from the command line or update existing project

//push everything from local to remote by git terminal
git remote add origin www.github.com/<your_link>.git
git branch -M main
git push -u origin main

// update existing local code to remote
git init 
git add .
git commit -m 'your comment'
git push
Source by github.com #
 
PREVIOUS NEXT
Tagged: #push #existing #repository #command #line #update #existing #project
ADD COMMENT
Topic
Name
5+7 =