Skip to content

Instantly share code, notes, and snippets.

@juanbrujo
Created July 10, 2023 17:44
Show Gist options
  • Save juanbrujo/2800a4ac1cea4bb8e32fb00c3c5ac051 to your computer and use it in GitHub Desktop.
Save juanbrujo/2800a4ac1cea4bb8e32fb00c3c5ac051 to your computer and use it in GitHub Desktop.
zshrc aliases
# 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)'
@smashy-road-online
Copy link

I recommend you try smashy road, you won’t be disappointed.

@Undidesix1961
Copy link

This is super helpful! Clean and straightforward solution for quick CSV to JSON conversion. Thanks for sharing crazy flips 3d!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment