Files
lasarus_compotents/bgrabitmap/commit.sh
2024-04-02 08:46:59 +03:00

14 lines
237 B
Bash

#!/bin/bash
#git checkout HEAD~ -- <file to cancel>
git add .
git status
echo "Type commit description (or press Enter to cancel):"
read commitdesc
if test -z "$commitdesc"
then
git reset --
else
git commit -m "$commitdesc"
fi
cd ..