$ cd $ mkdir myrepo.git $ cd myrepo.git $ git --bare init
$ git remote add origin username@mcgreg.comp.glam.ac.uk:/home/username/myrepo.git $ git push origin master
$ mkdir -p Sandpit/firstcopy $ cd Sandpit/firstcopy $ git init $ git add $ touch README $ git commit -m "My first file committed" $ git push
$ mkdir -p Sandpit/secondcopy $ cd Sandpit/secondcopy $ git clone username@mcgreg.comp.glam.ac.uk:/home/username/myrepo.git
$ cd Sandpit/secondcopy $ emacs README $ git commit -m "My second commit" $ git push
$ git diff
$ git log
$ git log version.c
$ git tag version1.0 -m "version 1.0"
$ git tag
$ mkdir thirdcopy $ cd thirdcopy $ git clone username@mcgreg.comp.glam.ac.uk:/home/username/myrepo.git $ git checkout version1.0
$ mkdir fourthcopy $ cd fourthcopy $ git clone username@mcgreg.comp.glam.ac.uk:/home/username/myrepo.git $ cd myrepo.git $ git log etc etc ec1c3b3fa9844e3304fe24eb54e0529e356883f7 etc etc $ git checkout ec1c3b3fa9844e3304fe24eb54e0529e356883f7 Note: checking out 'ec1c3b3fa9844e3304fe24eb54e0529e356883f7'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.
This document was produced using groff-1.22.