Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

GitLab Break the git init --initial-branch=main out into two commands

cd existing_folder
git init
git checkout -b  main
git remote add origin git@gitlab.com:path/to/project.git
git add .
git commit -m "Initial commit"
git push -u origin main
Source by gitlab.com #
 
PREVIOUS NEXT
Tagged: #GitLab #Break #git #init #commands
ADD COMMENT
Topic
Name
4+4 =