Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Tobias Büschel tobiasbueschel

🎯
Focusing
Block or report user

Report or block tobiasbueschel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tobiasbueschel
tobiasbueschel / gd-and-gds.md
Last active Nov 7, 2019
Alias: ignore package-lock.json and yarn.lock in git diff
View gd-and-gds.md

Don't want to see package-lock.json and yarn.lock in your git diff? Here are two nifty aliases that hide these files from your diff.

alias gd="git diff -- :!package-lock.json :!yarn.lock"
alias gds="git diff --staged -- :!package-lock.json :!yarn.lock"
View gppr.md

Alias: Git Push & Open PR using Chrome

GitHub and GitLab both give a very similar output after a git push command has been executed. Hence, we can construct an alias that allows us to push and automatically open Chrome to create a PR.

This is what GitHub outputs after git push has been executed:

Counting objects: 4, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 3.01 KiB | 3.01 MiB/s, done.
You can’t perform that action at this time.