Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #push #github
ADD COMMENT
Topic
Name
6+4 =