Skip to content

Instantly share code, notes, and snippets.

@bricss
Last active February 17, 2023 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bricss/2e4396c683085af8405601ccc8d6d225 to your computer and use it in GitHub Desktop.
Save bricss/2e4396c683085af8405601ccc8d6d225 to your computer and use it in GitHub Desktop.
Ignores active Git repo change(s)
#!/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