Collection of
git-tips, want to add your tips? Checkout contributing.md
- Overwrite pull
- List of all the files changed in a commit
- Git reset first commit
- List all the conflicted files
- List all branches that are already merged into master
- Quickly switch to the previous branch
- Remove branches that have already been merged with master
- List all branches and their upstreams, as well as last commit on branch
- Track upstream branch
- Delete local branch
- Delete remote branch
- Undo local changes with the last content in head
- Changing a remote's URL
git fetch --all && git reset --hard origin/mastergit ls-tree --name-only -r <commit-ish>git update-ref -d HEADgit diff --name-only --diff-filter=Ugit checkout master && git branch --mergedgit checkout -git branch --merged | grep -v '\*' | xargs -n 1 git branch -dgit branch -vvgit branch -u origin/mybranchgit branch -d <local_branchname>git push origin :<remote_branchname>git checkout -- <file_name>git remote set-url origin <URL>