GitLab
Create new version controlled environment
1) Create Repo in Gitlab
2) Clone Repo to local drive
Add existing local files to an existing Git
1) Initialize Git for a local folder
git init
2) Attach new initialized git repository to a remote location
git remote add origin https://gitlab.studium.uni-bamberg.de
3) Set local branch name
git branch -M main
4) Add changed files for version control
git add .
5) Commit the changes
git commit -m "first commit"
6) Pull what is already there
git pull origin main --allow-unrelated-histories
7) Push all the locally commited files to the remote location
git push origin main