gtallen1187
8/1/2014 - 7:25 AM

cool git features

cool git features

## set local branch to track remote
## using `dev` branch as an example

git branch --set-upstream-to=origin/dev dev

## abort conflicted merge

git merge --abort

## removes trailing whitespace, collapses newlines

git stripspace < file.txt

## highlight bad whitespace in your own files 

git diff --check

## shows diff for staged but uncommitted changes

git diff --cached

## fetch a pull request and bring it to your own local branch

git fetch origin pull/12/head:local-branch

## find all the repos that another user has starred on Github

https://github.com/stars/{user name}

## The single most beast-mode git command ever (requires defunkt/hub)
## creates a pull request from the command line, attaches the pull request to an issue, no fork required

git pull-request -i 349 -m "example location of imm date range in question" -b ecwdatascience:where-source-365 -h ecwdatascience:immunizations