We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ff8eea + 8323124 commit dcd0409Copy full SHA for dcd0409
git-pull.sh
@@ -55,9 +55,17 @@ then
55
# First update the working tree to match $curr_head.
56
57
echo >&2 "Warning: fetch updated the current branch head."
58
- echo >&2 "Warning: fast forwarding your working tree."
+ echo >&2 "Warning: fast forwarding your working tree from"
59
+ echo >&2 "Warning: $orig_head commit."
60
+ git-update-index --refresh 2>/dev/null
61
git-read-tree -u -m "$orig_head" "$curr_head" ||
- die "You need to first update your working tree."
62
+ die 'Cannot fast-forward your working tree.
63
+After making sure that you saved anything precious from
64
+$ git diff '$orig_head'
65
+output, run
66
+$ git reset --hard
67
+to recover.'
68
+
69
fi
70
71
merge_head=$(sed -e '/ not-for-merge /d' \
0 commit comments