Skip to content

New project initialization snippets are incorrect

After an update the command line instructions are no longer working.

My recommendation would be to change some things as well: from:

cd existing_folder
git init
git remote add origin 
https://gitlab.com/name/project.git

git add .
git commit -m "Initial commit"
git push -u origin master

to:

# cd existing_folder
git init
git remote add origin https://gitlab.com/name/project.git

git add .
git commit -m "Initial commit"
git push -u origin master

Elaboration: git remote add origin \n ...rest -> this does not work cd existing_folder -> I always run the snippets from the proper folder. cd existing_folder is never correct and should always be backspaced to properly work making copy paste not a valid option. You can let it error but this feels awkward.