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
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
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
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.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions to GitTrashCan-CLI are welcome! If you would like to contribute, please create a pull request on the GitHub repository.
GitTrashCan-CLI was created by tkgka