Look here for the Final Project FAQ
First thing, you have to config git for use:
git config --global user.name "my name" git config --global user.email "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.
The CSci 428 repository on
bitbucket.org 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
Which puts the directory under revision control.
Still in Terminal, issue the clone command in the destination directory:
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