Skip to content

Instantly share code, notes, and snippets.

@jsocol
Created June 8, 2010 17:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsocol/430368 to your computer and use it in GitHub Desktop.
Save jsocol/430368 to your computer and use it in GitHub Desktop.
git-fall - Fetch and prune all remotes
#!/bin/bash
# Fetch and prune all remotes.
for r in `git remote`
do
git remote prune $r
git fetch $r
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment