CS 214: Programming Languages
Spring 2009

Home|Syllabus|Schedule

Help: Git Tags

Context

You want to tag a particularly stable version of your repository so that your client (or the grader) can check out that code while you continue on with more development.

Instructions

  1. Use git status to find which files have been changed.
  2. Use git add to stage the appropriate files.
  3. Use git commit to commit the staged files to your local repository.
  4. Tag this point in your repository:
    unix-%  git tag week88
    
    This will tag the current version of the repository with week88 (change as needed).
  5. Use git push to push the repository onto csforge.
  6. Use git push --tags to push the tags from your repository onto csforge.

Yes, you must run git push twice as specified here.

In general, you can use any name for a tag, but for grading purposes it's easier with a week02 type pattern.