Skip to content

Instantly share code, notes, and snippets.

@it-is-wednesday
Created November 16, 2021 14:20
Show Gist options
  • Save it-is-wednesday/3f463faeb36000d871cd742c1990ce23 to your computer and use it in GitHub Desktop.
Save it-is-wednesday/3f463faeb36000d871cd742c1990ce23 to your computer and use it in GitHub Desktop.
#!/usr/bin/env fish
set affected (git status --porcelain | cut -d' ' -f 3 | awk -F'/' '{print $NF}' | string join ", ")
# --all stages all changes to already-tracked files
git commit --all -m $affected
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment