Commit 6702d878 authored by Alvin Cheung's avatar Alvin Cheung
Browse files

added initial instructions

This repo holds the homework assignments for CSE 414, spring 2018 quarter
test -z "$1" && echo "Usage example: $0 hw1" && exit 1
#check no uncommitted changes.
(git status | grep -q modified:) && echo 'Error. There are uncommitted changes in your working directory. You can do "git status" to see them.
Please commit or stash uncommitted changes before submitting' && exit 1
COMMIT=$(git log | head -n 1 | cut -b 1-14)
if (git tag $1 2>/dev/null)
echo "Created tag '$1' pointing to $COMMIT"
git tag -d $1 && git tag $1
echo "Re-creating tag '$1'... (now $COMMIT)"
echo "Now syncing with origin..."
git push origin --mirror #--atomic
echo "Please verify on GitLab that your tag '$1' matches what you expect. "
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment