git-stage.sh
This file
Path
examples/git-stage.sh
12 lines · 271 bytes · Shell
Last changed by
Not known.
History of this fileTake it
12345678910111213#!/bin/bash
ADD="Add"RESET="Reset"
ACTION=$(gum choose "$ADD" "$RESET")
if [ "$ACTION" == "$ADD" ]; then git status --short | cut -c 4- | gum choose --no-limit | xargs git addelse git status --short | cut -c 4- | gum choose --no-limit | xargs git restorefi