Skip to content

Instantly share code, notes, and snippets.

@Akifcan
Last active July 17, 2026 09:56
Show Gist options
  • Select an option

  • Save Akifcan/03f40221c3b172b68fd46082f6d84cb3 to your computer and use it in GitHub Desktop.

Select an option

Save Akifcan/03f40221c3b172b68fd46082f6d84cb3 to your computer and use it in GitHub Desktop.
tag-release.sh
#!/bin/bash
# tag-release.sh
# Usage: ./tag-release.sh v1.4.2
VERSION=$1
if [ -z "$VERSION" ]; then
echo "Usage: ./tag-release.sh v1.4.2"
exit 1
fi
REPOS=(
"INSERT"
"YOUR"
"PROJECT PATH"
"HERE"
)
for REPO in "${REPOS[@]}"; do
echo "📦 $REPO..."
git -C "$REPO" tag "$VERSION"
git -C "$REPO" push origin "$VERSION"
echo "✅ Done: $REPO"
done
echo "🎉 All repos tagged with $VERSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment