Skip to content

Instantly share code, notes, and snippets.

@ianpartridge
Created September 23, 2016 15:37
Show Gist options
  • Save ianpartridge/453d0fd91144a44fa91592da25d6a5a6 to your computer and use it in GitHub Desktop.
Save ianpartridge/453d0fd91144a44fa91592da25d6a5a6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Shell script to change a Swift package dependency to another branch
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
git checkout $1