Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #push #local #code #git #repository
ADD COMMENT
Topic
Name
5+1 =