Created
September 23, 2016 15:37
-
-
Save ianpartridge/453d0fd91144a44fa91592da25d6a5a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/apple/swift-evolution/blob/master/proposals/0082-swiftpm-package-edit.md and https://github.com/apple/swift-evolution/blob/master/proposals/0150-package-manager-branch-support.md
made this obsolete 🙂