We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3121cfe commit 793d34bCopy full SHA for 793d34b
EasyKey.git/ezk-git-functions.sh
@@ -384,6 +384,11 @@ function settingUp () {
384
}
385
386
ammendCommit() {
387
+ behind_count=$(git rev-list --count ${current_branch}..${current_branch}@{upstream})
388
+ if [ $behind_count -gt 0 ]; then
389
+ echo "Your branch is behind remote branch! Update first using git pull."
390
+ return
391
+ fi
392
echo -n "Change some commit messages(y/n)?" && wait_for_keypress && echo
393
[ "${REPLY}" != "y" ] && waitonexit && return
394
git rebase -i HEAD~10
0 commit comments