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
- Use
git status
to find which files have been changed. - Use
git add
to stage the appropriate files. - Use
git commit
to commit the staged files to your local repository. - Tag this point in your repository:
unix-% git tag week88
This will tag the current version of the repository withweek88
(change as needed). - Use
git push
to push the repository onto csforge. - 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.