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
Written by Ronan Guilloux
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#