Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodegit/nodegit
/ undoCommit
Function
undoCommit
test/tests/commit.js:84–86 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
82
}
83
84
function
undoCommit() {
85
return
exec(
"git reset --hard HEAD~1"
, {cwd: reposPath});
86
}
87
88
beforeEach(
function
() {
89
return
reinitialize(this);
Callers
1
commit.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…