Last active
February 17, 2023 17:20
-
-
Save bricss/2e4396c683085af8405601ccc8d6d225 to your computer and use it in GitHub Desktop.
Ignores active Git repo change(s)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Ignores active change(s) in Git repo | |
# Mostly useful within CICD pipelines | |
# Usage: `sh git-drain.sh` | |
git status --porcelain | cut -c4- | xargs -n1 git update-index --assume-unchanged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment