You've already forked personal-linux-config
added taglist alias and tagpush functions
This commit is contained in:
@@ -21,3 +21,16 @@ __git_prompt() {
|
||||
__git_history() {
|
||||
echo "$(git log --oneline | cut -d ' ' -f 1)"
|
||||
}
|
||||
|
||||
tagpush() {
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: tagpush <tag>"
|
||||
return
|
||||
fi
|
||||
git tag "$1"
|
||||
# for every remote
|
||||
for REMOTE in $(git remote) ; do
|
||||
# push current branch and newly created tag
|
||||
git push "$REMOTE" $(git branch | grep "*" | sed 's/\* //') "$1"
|
||||
done
|
||||
}
|
||||
|
Reference in New Issue
Block a user