Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Chris Kim
cse344-2018wi
Commits
2c4bdb79
Commit
2c4bdb79
authored
Jan 08, 2018
by
Jonathan Leang
Browse files
added general README and turn-in script
parent
89e8ee5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.txt
0 → 100644
View file @
2c4bdb79
The assignment instructions and starter code (if needed) are posted here.
Please place your solutions in the submission directory then run:
$ ./turnInHw.sh hw1
turnInHw.sh
0 → 100755
View file @
2c4bdb79
#!/bin/bash
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
)
then
echo
"Created tag '
$1
' pointing to
$COMMIT
"
else
git tag
-d
$1
&&
git tag
$1
echo
"Re-creating tag '
$1
'... (now
$COMMIT
)"
fi
echo
"Now syncing with origin..."
git push origin
--mirror
#--atomic
echo
"Please verify in gitlab that your tag '
$1
' matches what you expect. "
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment