Git Cheatsheet
New git repository
git init
touch .gitignore
echo target/ >> .gitignore
git add .
git commit -m "message here"
git push https://your-username@gitlab.com/your-username/xxx.git master
Add remote repository
cd existing_folder
git init
git remote add origin https://thiamteck@gitlab.com/thiamteck/ups-charging-adapter-mtcharge.git
git add .
git commit
git push -u origin master
Additional
git pull origin master
git pull origin master --allow-unrelated-histories