Skip to content

Instantly share code, notes, and snippets.

View jward7's full-sized avatar
:octocat:
Back working on github instead of gitlab

Justin jward7

:octocat:
Back working on github instead of gitlab
  • Truganina
View GitHub Profile
@jward7
jward7 / gitcheats.txt
Created March 21, 2016 12:27 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# count relevant lines of shell code in a git repo
egrep -v '^\s*($|#)' $(git grep -l '#!/bin/.*sh' *) | wc -l
# push all remotes
for i in `git remote`; do git push $i; done;
# cherry pick range of commits, starting from the tip of 'master', into 'preview' branch