Uncommit command has been added
This commit is contained in:
parent
6cc0e81e52
commit
83c9455fc0
|
@ -155,6 +155,11 @@ function git_reset_branch_commits() {
|
|||
git reset $(git merge-base $1 $(git branch --show-current))
|
||||
}
|
||||
|
||||
function git-uncommit() {
|
||||
git reset --soft HEAD~1
|
||||
git restore --staged .
|
||||
}
|
||||
|
||||
#this is unlikely to change so make it all statically assigned
|
||||
POST_1_7_2_GIT=$(git_compare_version "1.7.2")
|
||||
#clean up the namespace slightly by removing the checker function
|
||||
|
|
Loading…
Reference in New Issue