Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git push example

echo "Project_name_and_details" >> README.md
git init
git add README.md
git add /path/to/file #folders or files you want to add
git commit -m "first commit"
git branch -M main #Use if you dont want to use the master branch
git remote add origin https://github.com/username/project.git
git remote -v #Always good to check
git push -u origin main 
Source by docs.github.com #
 
PREVIOUS NEXT
Tagged: #git #push
ADD COMMENT
Topic
Name
5+1 =