https://github.com/wk1/custom-git-commands
Custom git commands
https://github.com/wk1/custom-git-commands
config personal shell
Last synced: 10 months ago
JSON representation
Custom git commands
- Host: GitHub
- URL: https://github.com/wk1/custom-git-commands
- Owner: wk1
- Created: 2022-08-05T11:55:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T13:09:48.000Z (over 3 years ago)
- Last Synced: 2023-06-15T11:28:16.390Z (about 3 years ago)
- Topics: config, personal, shell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
These are just some minor shortcuts I use for git to make my life easier.
## Usage
Download the repo and permanently add the commands to your path with (for zsh):
`echo -n '\nexport PATH=$PATH:[Repo Directory]' >> ~/.zshrc`
e.g.
`echo -n '\nexport PATH=$PATH:~/Developer/CustomGit' >> ~/.zshrc`
Afterwards you can use theses commands just like normal git commands like
`git finish`
or
`git publish`
...
## Adding custom commands
Just create a new file `git-commandname` add your desired code to the file and make it executable with `chmod +x git-commandname`. Since you already added the repo folder to you path you should be able to use it right away. (For existing sessions you might need to source your zshrc again by calling `zsh` or `source ~/.zshrc`)