Advanced Programming in the UNIX Environment

Using git(1)


Learning to use a code revision system and collaborating with others is an important aspect of programming. Git is a popular free and open source distributed version control system and well worth knowing at least the fundamental of.

Note: git(1) can be used without and independent of GitHub! In this class, we will use git(1) for your course notes, although you are of course free to also use git(1) for any other assignments.

You can create a repository on any Unix system you have access to, or even use a public repository such as on GitHub.

Working with git

You should make it a habit to begin your working session by updating your copy of the repository and ending it by committing your changes. If you are ready to push your changes, you would then push them to the repository:

$ cd group1
$ git pull
$ $EDITOR notes
$ git commit
$ git push

Please always write a meaningful commit message. See these links for why/how:

[Course Website]