- This repository contains a collection of useful Git commands and scripts to help manage and automate your Git workflow.
- This repository is primarily intended for use on Linux or macOS systems.
| command | Ubuntu | MacOS |
|---|---|---|
tree |
apt install tree |
brew install tree |
yamlcli |
uv tool install git+https://github.com/RyoNakagami/yamlcli.git |
uv tool install git+https://github.com/RyoNakagami/yamlcli.git |
-
Clone the repository:
git clone https://github.com/RyoNakagami/regmonkey_gitcommand.git
-
[Optional]: dependency check
If you need to check dependencies, please run:
bash ./setup_dependency.sh
-
setup path
write the fowllowing line in your
.zshrcor.bashrcexport PATH="$PATH:$HOME/.tool.d/regmonkey_gitcommand/src"
-
Permission
Make the scripts executable:
chmod +x ~/.tool.d/regmonkey_gitcommand/src/*
- Delete the directory
~/.tool.d/regmonkey_gitcommand - Delete the line
export PATH=$PATH:~/.tool.d/regmonkey_gitcommand/srcin your.zshrcor.bashrc
rm -rf ~/.tool.d/regmonkey_gitcommandTo enhance your Git experience with some convenient aliases, please add the following lines to your .gitconfig file:
[alias]
# regmonkey_gitcommand
add-newline = "!git-add-newline.sh"
add-patch = "!git-add-patch.sh"
browse = "!git-browse.sh"
check-commitsize = "!git-check-commitsize.sh"
delete-current-repo = "!git-delete-current-repo.sh"
delete-obsolete-branch = "!git-delete-obsolete-branch.sh"
issue2pr = "!git-issue2pr.sh"
lastdiff = "!git-lastdiff.sh"
newline-check = "!git-newline-check.sh"
sprint-commit = "!git-sprint-commit.sh"
tree = "!git-tree.sh"
tmp-checkout = "!git-tmp-checkout.sh"
whoami = "!git-whoami.sh"These aliases provide shortcuts for common commands, making your workflow more efficient.
For example, git check-commitsize will run the git-check-commitsize command, and git tree will run the gtree command.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or suggestions, please open an issue or contact the repository owner.