File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,22 @@ export extern "git checkout" [
190190 - l # create reflog for new branch
191191]
192192
193+ export extern "git reset" [
194+ ... targets : string @" nu-complete git checkout" # name of commit, branch, or files to reset to
195+ -- hard # reset HEAD, index and working tree
196+ -- keep # reset HEAD but keep local changes
197+ -- merge # reset HEAD, index and working tree
198+ -- mixed # reset HEAD and index
199+ -- patch(-p) # select hunks interactively
200+ -- quiet(-q) # be quiet, only report errors
201+ -- soft # reset only HEAD
202+ -- pathspec-from-file : string # read pathspec from file
203+ -- pathspec-file-nul # with --pathspec-from-file, pathspec elements are separated with NUL character
204+ -- no-refresh # skip refreshing the index after reset
205+ -- recurse-submodules : string # control recursive updating of submodules
206+ -- no-recurse-submodules # don't recurse into submodules
207+ ]
208+
193209# Download objects and refs from another repository
194210export extern "git fetch" [
195211 repository ?: string @" nu-complete git remotes" # name of the branch to fetch
You can’t perform that action at this time.
0 commit comments