Last active
July 24, 2025 08:41
-
-
Save juanbrujo/22a6a3916b0894a4b30c45d8380b1808 to your computer and use it in GitHub Desktop.
Revisions
-
juanbrujo revised this gist
May 4, 2023 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,13 @@ # Git aliases alias gitd="git diff -- ':!package-lock.json' ':!yarn.lock'" alias gitc='git checkout development' 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)' -
juanbrujo created this gist
May 4, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ # Git aliases alias gitd="git diff -- ':!package-lock.json' ':!yarn.lock'" # 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)' alias gitc='git checkout development' alias gits='git status'