Skip to content

Instantly share code, notes, and snippets.

@mchavezi
Created April 6, 2026 01:53
Show Gist options
  • Select an option

  • Save mchavezi/285f5cd8676f35b7c98dd98c3bbc34ac to your computer and use it in GitHub Desktop.

Select an option

Save mchavezi/285f5cd8676f35b7c98dd98c3bbc34ac to your computer and use it in GitHub Desktop.
Bump
#!/bin/bash
# Check if bump.txt exists, if not, create it
if [ ! -f bump.txt ]; then
touch bump.txt
fi
# Append the timestamp to bump.txt
echo "Bumping at $(date)" >> bump.txt
# Get the current git branch
current_branch=$(git rev-parse --abbrev-ref HEAD)
# Perform git operations
git add bump.txt
git commit -m "bump"
git push origin "$current_branch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment