byul-alias
v1.0.0
Published
Simple git alias manager
Downloads
50
Maintainers
Readme
byul-alias
byul-alias is a simple git alias manager.
Installation
You can install byul-alias using your preferred package manager:
npm
npm install byul-alias
Yarn
yarn add byul-alias
pnpm
pnpm add byul-alias
Bun
bun add byul-alias
Setup error
If the byul-alias.yml
file hasn’t been created, run:
node node_modules/byul-alias/dist/setup.mjs
Or, you can manually create the byul-alias.yml
file and add this code:
# Common Git Alias Shortcuts
# --------------------------
# You can customize these aliases however you like.
# Below are some of the most commonly used Git aliases:
# co: checkout -> Switch branches or restore working tree files
# br: branch -> List, create, or delete branches
# ci: commit -> Record changes to the repository
# st: status -> Show the working tree status
# lg: log --oneline --graph --decorate -> Show a graphical log of commits
# cm: commit -m -> Record changes with an inline commit message
# a: add . -> Stage all changes in the current directory
# Note: These are just examples.
# You can define your own shortcuts, like setting `co` to `commit`.
git-alias:
co: checkout
br: branch
ci: commit
st: status
cm: commit -m
Usage
Define Your Git Aliases
Customize your Git Aliases by editing the byul-alias.yml
file. Here’s an example configuration:
git-alias:
co: checkout
br: branch
ci: commit
st: status
cm: commit -m
This setup ensures that your Git aliases are consistently applied across your project.
Install and Apply Aliases
Once your Git Aliases are configured, install and apply them effortlessly with:
npx byul-alias install
npx byul-alias add
Byul-alias automatically configures and applies your Git aliases with ease.
Contributing
We welcome contributions to byul-alias! Whether it's reporting a bug, suggesting an enhancement, or submitting a pull request, your input is valued.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
For any questions, suggestions, or feedback, please contact love1ace.