Created
April 2, 2016 22:09
-
-
Save pigreco/fd643455c93a4adf90fdbfddd1126edb 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
# create a new branch | |
new_branch = repo.create_head('processing_test') | |
# create upstream remote urls | |
upstream = repo.create_remote('upstream', repo_qgis) | |
origin = repo.remotes.origin | |
upstream = repo.remotes.upstream | |
# get heads and checkout new branch | |
heads = repo.heads | |
heads.new_branch.checkout() | |
# pull to new branch from qgis | |
upstream.pull(refspec=heads.master) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment