git_undo {git4r} | R Documentation |
Reset working directory to any previous commit, or action. This will not change the active branch so do this first if you want to continue on a different branch. All previous commits are shown, even if the branch they were on has been deleted, and this undo 'reset' itself will appear as a 'reflog' action.
git_undo(top = 10)
top |
Number of undo commits to show |
Invisible NULL