Get yourself an account at one of the Distributed Version Control servers. Bitbucket, Github, and Gitlab (which run Git only) are popular choices with free plans. Sourceforge (which runs both Git and Mercurial) is another possibility. There is also a server at AU [gitlab.au.dk] but you will probably not be able to access it after graduation. Alternatively, any POSIX box with a static IP address running Apache and Git (like sdf.org) would do.
Read about Git at Bitbucket[→] (or any other place) and/or about Mercurial at mercurial-scm.org.
Install Git or Mercurial at your box,
sudo apt install gitor
sudo apt install mercurial
At your server: create a new project with an indicative name like "ppnm" :). You might need to read your server's documentation about how you do this.
At your box:
mkdir ~/repos
cd ~/repos
git clone address-of-your-repositoryor, if you use mercurial
hg clone address-of-your-repository
git add --all git commit --all --message 'did this and that blah blah...' git pushor, if you use mercurial,
hg add hg commit --message 'an indicative message describing commit' hg pushThe long options can be abbreviated as
-a
and -m
.