Skip to content

GitTrashCan-CLI is a command-line tool for managing Git repositories. It provides an easy way to rollback deleted commits by mistake.

License

Notifications You must be signed in to change notification settings

Nazku-com/GitTrashCan-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitTrashCan-CLI

GitTrashCan-CLI is a command-line tool for managing Git repositories. It provides an easy way to rollback deleted commits by mistake.

Screen.Recording.2023-04-15.at.8.17.58.PM.mov

Installation

To install GitTrashCan-CLI, clone the repository and run the install.sh or run the command under below

git clone https://github.com/Nazku-com/GitTrashCan-CLI && cd GitTrashCan-CLI && chmod 555 ./init.sh && ./init.sh

This will install the gitTrashCan command-line tool to your system.

after download, reopen the terminal and use the GitTrashCan-CLI!

Note: If you are not using the zsh shell, you will need to manually copy the gitTrashCan file to a directory in your PATH.

cat ./gitTrashCan >> PathThatYouUse
source PathThatYouUse

Usage

To use GitTrashCan-CLI, navigate to the root directory of your Git repository and run the gitTrashCan command:

cd /path/to/repo
gitTrashCan

This will display a list of dangling commits and prompt you to move them to a trash branch.

enter the hash to restore and it automatically make the branch to restore

image

You can also specify the path to the Git repository as an argument to the gitTrashCan command:

gitTrashCan /path/to/repo

This will perform the same operation on the specified repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions to GitTrashCan-CLI are welcome! If you would like to contribute, please create a pull request on the GitHub repository.

Credits

GitTrashCan-CLI was created by tkgka

About

GitTrashCan-CLI is a command-line tool for managing Git repositories. It provides an easy way to rollback deleted commits by mistake.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages