A few Git tips
I don't do that much that's clever with git, but I've found the following helpful. Automatically prune When you do a git fetch or git pull, you can ask it to remove remote tracking branches for a branch that has been removed on the remote by using the –prune flag. This can be automated globally with:
1 |
git config --global fetch.prune true |
and if you only want it for a specific repository, you can use:
1 |
git config remote.origin.prune true |
One line log I… continue reading.