Skip to content

Instantly share code, notes, and snippets.

@jserpapinto
Created May 24, 2023 08:11
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 jserpapinto/296222186b553361c2f4048d9320749f to your computer and use it in GitHub Desktop.
Save jserpapinto/296222186b553361c2f4048d9320749f to your computer and use it in GitHub Desktop.
Bash functions
function git_unstage () {
git restore --staged $@
}
# function to fast push code to git
function fast_git_push () {
git add .; git commit --amend --no-edit; git push origin $(git branch --show-current) $1
}
# function to get azure ad user object id
function az_user_id () {
az ad user show --id "$1"@dystematic.com --query id --out tsv
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment