2018-05-24 20:32:34 +00:00
|
|
|
#!/bin/bash
|
2018-05-24 20:36:20 +00:00
|
|
|
# You can pass --force as first parameter to force push and tag creation.
|
2018-05-24 20:32:34 +00:00
|
|
|
|
2018-05-25 20:47:36 +00:00
|
|
|
echo "Creating tag $@"
|
2018-05-24 20:32:34 +00:00
|
|
|
|
2018-05-25 20:47:36 +00:00
|
|
|
git tag $@
|
2018-05-24 20:32:34 +00:00
|
|
|
|
|
|
|
echo "Pushing tag"
|
|
|
|
|
2018-05-25 20:47:36 +00:00
|
|
|
git push origin $@
|