A fast-track Git server howto
Package folder to git
git clone --bare projectfolder projectname.git
After that, we can copy it to a server where we have, eg SSH access. But, remember, if you're using another port for SSH than port 22, there's a few changes we need to make. In the ssh client config file /etc/ssh/ssh_config,
you have to set some options, changing the port number.
/etc/ssh/ssh_config
host YOUR_SERVER
port YOUR_PORT
When that's done, take your new git out for a spin. On the client machine, try to clone from Git, using
git clone user@server:/path/to/gitproject.git
See if you can add a file with
git add filename.txt
Commit changes to git with
git commit -m "Added filename.txt"
And, last, push changes up to git
git push
Lastly, on another workstation, pull down changes to the git repo with
git pull
If you need to see changes to the git project, you can do that with
git status