I created a repository on my vserver with
git init --bare
did the following on my local machine
git init
touch .gitignore
git add --all
git commit -m 'initial commit'
git remote add origin "git:$project_name"
git push origin master
added source files to the local project folder and commited everything (both via console and VS Code). So far, so good. Two problems:
1) The .git folder on the local machine is several times larger than the .git folder on the server. Is that normal? 2) If I clone the remote repository with another local machine, it does create lots of folders and files, but it doesn't download any source files. Are my sources not on the server at all?