Created
April 11, 2025 06:03
-
-
Save productdevbook/dbd46bbe055a14cc8f8c685c4276f5fb to your computer and use it in GitHub Desktop.
alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Git Update Alias | |
You can create a Git alias to easily update your fork by synchronizing it with the original repository (upstream). The alias performs a series of commands to fetch the latest changes from upstream, merge them into your fork, and push the changes to your remote repository. | |
### 1. **Set up the Alias** | |
Run the following command in your terminal to define the `git update` alias: | |
```bash | |
git config --global alias.update '!f() { git fetch upstream && git merge upstream/main && git push origin main; }; f' | |
``` | |
# pnpm i -g taze | |
alias taz0='taze -r -w && pnpm install' | |
alias taz1='taze major -r -w && pnpm install' | |
alias npush='pnpm install && pnpm build && pnpm publish --access public --no-git-checks' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment