-
-
Save juanbrujo/2800a4ac1cea4bb8e32fb00c3c5ac051 to your computer and use it in GitHub Desktop.
| # Git aliases | |
| alias gitd="git diff -- ':!package-lock.json' ':!yarn.lock'" | |
| alias gitc='git checkout develop' | |
| alias gits='git status' | |
| # Will return the current branch name | |
| # Usage example: git pull origin $(current_branch) | |
| function current_branch() { | |
| ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
| echo ${ref#refs/heads/} | |
| } | |
| alias gitp='git pull origin $(current_branch)' |
Level Devil stands out as a brilliant creative force, effortlessly weaving intricate narratives and enchanting melodies that captivate the heart and ignite the imagination.
I recommend you try smashy road, you won’t be disappointed.
This is super helpful! Clean and straightforward solution for quick CSV to JSON conversion. Thanks for sharing crazy flips 3d!
This is a great example of keeping a .zshrc workflow simple and practical. The Git aliases make everyday commands like git status, switching to develop, and pulling from the current branch much quicker, while the custom current_branch() function adds a nice touch of automation. I especially like gitd, since excluding package-lock.json and yarn.lock keeps diffs focused on the changes that actually matter. Small shell improvements like these can save a surprising amount of time during daily development. https://savetikio.com/
Your writings stick out to me since the content is interesting and simple to understand. Even though I've read a lot of websites, I still like yours more. Your essay was interesting to read candy clicker 2. I can understand the essay better now that I've read it carefully. In the future, I'd like to read more of your writing.