SkillAgentSearch skills...

GitUndo

Git extension with easy to remember undo commands

Install / Use

/learn @crilleengvall/GitUndo
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

GitUndo

Git extension with easy to remember undo commands
GitUndo on Github pages

Installation

You need to put the file git-undo in the correct path. After that is done, the extension is ready to use.

Start by downloading the repo

Mac/Linux

Copy git-undo file to /usr/local/bin with terminal:
cp <path-to-file>/git-undo /usr/local/bin/

Windows

Copy the git-undo file to your git installation folder: C:\Program Files\Git\mingw64\libexec\git-core
or
C:\Program Files (x86)\Git\mingw64\libexec\git-core

Usage

This extension currently has three new commands.

git undo commit
This will undo the latest commit, but the changes in that commit will be left staged.

git undo stash-apply
if you've done a git stash apply, but didn't mean to you can use this command to undo the apply.

git undo pushed-merge <merge-commit-hash>
This will undo a pushed merge. run a git log to get the commit hash.

GitUndo logo

Related Skills

View on GitHub
GitHub Stars26
CategoryDevelopment
Updated5y ago
Forks2

Languages

Shell

Security Score

80/100

Audited on Nov 25, 2020

No findings