User Tools

Site Tools


Frequently Asked Questions

Look here for the Final Project FAQ

Using Git on a Local Computer

First thing, you have to config git for use:

git config --global "my name"
git config --global "my email"
git config --global core.editor name-of-favorite-editor

The last command is optional. If you don't configure an editor, git uses vi by default.

Clone a Repository

The CSci 428 repository on can be viewed here:

Currently there are two repos: Packetize and ProxyServer. Let's say you want to get your own copy of ProxyServer. First, make a local directory for the files. In Terminal, change to the new directory and issue the command

git init

Which puts the directory under revision control.

Still in Terminal, issue the clone command in the destination directory:

git clone

You should have obtained all the files listed in the repo at

See the Git Book page on setting up for more information.


Best practice is to use git to commit your files after each successful build (that is, once you've made a number of changes to your files, they compile, and pass your alpha tests).

When using git to commit changes to the local project, you first add the modified files, then commit. This can be done two ways:

git add changed.file
git commit


git commit -a changed.file

in either case, an editor will pop open for you to enter a commit message which is a summary of changes. THIS IS IMPORTANT as it documents your stages of development. Example commit messages:

Added code to log HTTP requests
Added fix to client connection to proxy
Fixed bug where server never accepts connections
cs428/bitbucket.txt · Last modified: 2016/04/22 12:46 by scarl