|
You are here |
www.erikschierboom.com | ||
| | | | |
haacked.com
|
|
| | | | | A git alias to clean up gone branches. Even ones that have been squashed and merged. | |
| | | | |
www.aaron-gray.com
|
|
| | | | | You can run rubocop on just a local branches' changes like this: git fetch && git diff-tree -r --no-commit-id --name-only master@{u} head | xargs ls -1 2>/dev/null | xargs rubocop --force-exclusion Then you can create 2 corresponding aliases in your terminal .rc file to make this easy to remember: # Alias to run rubocop on the current branch's diff from [...] | |
| | | | |
blog.danskingdom.com
|
|
| | | | | Git is super powerful, but can also be confusing, especially when using the command line interface (CLI). It has so many commands, and I only regularly use a handful of them. | |
| | | | |
www.brandonpugh.com
|
|
| | | If you've ever worked on a project with me then I've probably recommended at least one of these config settings in git. git config --global pull.rebase true - tells git to always pull with rebase instead of merge (the equivalent of pull --rebase). This not only saves you having to type the flag every time, but also ensures gui clients will also use rebase when pulling. Note: You should only enable this if you're comfortable with rebasing. | ||