Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Undo what you just did in git

NotificationsYou must be signed in to change notification settings

cranesandcaff/gitjk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If you just ran a git command that you didn't mean to, this program will either undo it,tell you how to undo it, or tell you it's impossible to undo. Based on a joke I posted a while ago.

Examples

Asking for undo-ing advice.

git initgitjkThis created a .git folder in the current directory. You can remove it.sudo rm -r .git

Asking to fix it automatically

git add file.jsgitjk -fThis added file.js to the changes staged for commit. All changes to file.js will be removed fromstaging for this commit, but remain saved in your file.Running... git rm -r --cached file.jsCompleted

Coverage

Included:

add,checkout,clone,commit,diff,fetch,grep,init,log,merge,mv,pull,push,remote,rm,show,status

Not included:

bisect,branch,rebase,reset,tag

Install

You can't just npm install! The module is named gitjk but you can set up an alias for it to pipe thelast command into the program.

OSX or BSD

npm install -g gitjkalias gitjk="history 10 | tail -r | gitjk_cmd"

Ubuntu / other Linux

npm install -g gitjkalias gitjk="history 10 | tac | gitjk_cmd"

License

Available under GPLv3 license

About

Undo what you just did in git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp