Last Updated: February 25, 2016
·
541
· ronanguilloux

Git tricks

List all changed files between two commits:

git show --pretty="format:" --name-only  684ac7e..a1a0667 | sort | uniq

Delete local branche 3301:

git branch -d 3301

Delete remote branche 3301:

git push origin :3301

Pushing the local dev branch to the remote master branch:

git push staging dev:master

Create a new branch from another you’re not currently in:

git checkout -b feature_branch dev

is equal to

git checkout dev

plus

git checkout -b feature_branch

Git-gutter

Vim version : https://github.com/airblade/vim-gitgutter

SublimeText version : https://github.com/jisaacks/GitGutter