Skip to content

Instantly share code, notes, and snippets.

@thesoorajsingh
Last active May 27, 2025 10:38
Show Gist options
  • Save thesoorajsingh/0a47446e551db9f8ceee814858e8a085 to your computer and use it in GitHub Desktop.
Save thesoorajsingh/0a47446e551db9f8ceee814858e8a085 to your computer and use it in GitHub Desktop.
Git Configs
[alias]
deploystaging = "!f() { \
BRANCH=$(git rev-parse --abbrev-ref HEAD) && \
git fetch origin && \
git checkout staging && \
git merge \"$BRANCH\" && \
git push origin staging && \
git checkout \"$BRANCH\"; \
}; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment