Updated shell scripts again

This commit is contained in:
raccoon
2026-07-25 02:21:16 +05:00
parent 50947a0def
commit d0fac4ebfb
4 changed files with 26 additions and 7 deletions

View File

@@ -9,8 +9,16 @@ if [ -z "$upstream" ]; then
exit 1
fi
echo ""
echo "Going to reset current branch to: ${upstream}"
echo "*** WARNING: All local changes and commits will be lost!"
echo ""
echo "*** WARNING: These local commits will be lost:"
git log "${upstream}..HEAD" --oneline
echo ""
echo "*** WARNING: These local files will be reset:"
git diff "HEAD..${upstream}" --name-only
printf "\nExecute [Y,N]?"; read -r yn
if [ "$yn" = "${yn#[Yy]}" ]; then