Skip to content

Instantly share code, notes, and snippets.

@major0
Last active August 29, 2015 14:02
Show Gist options
  • Save major0/498f83a8606d4b1c5f54 to your computer and use it in GitHub Desktop.
Save major0/498f83a8606d4b1c5f54 to your computer and use it in GitHub Desktop.
Non-working git config for aiding in a PQM based workflow
[push]
default = current
[remote "origin"]
url = git@example.com:project.git
fetch = +refs/heads/master:refs/remotes/origin/master
[remote "pqm"]
url = git@example.com:project.git
fetch = +refs/heads/personal/user/pqm/*:refs/remotes/personal/user/pqm/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "personal/user/pqm/master"]
remote = .
pushremote = pqm
merge = res/heads/master
rebase = true
@major0
Copy link
Author

major0 commented Jun 23, 2014

Attempting to configure git so that working w/in a PQM workflow model is considerably easier. In this case we have a personal branch personal/user/pqm/master. Whenever we are on this branch we want git pull to rebase master, while git push pushes to the pqm remote personal/user/pqm/master. The act of pushing to the remote branch triggers the PQM software to checkout the revision and run various tests. If all tests pass the PQM makes that revision the new master HEAD.

@major0
Copy link
Author

major0 commented Jun 23, 2014

After discussing this issue on irc://irc.freenode.net/git, it seems that this is not possible w/out a branch.<name>.push configuration directive, which currently does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment