1

I'm working on a rails app that I occasionally push to a staging server to test things out. I can easily push my local master to the remote master (I called it origin). I'm running into a problem where I'm trying out 2 frameworks, each in their own branch on my local machine. I'd like to see how the frameworks work on the remote server.

How can I push from local:Framework1 to remote:master (because the staging server has scripts that deploy master from the staging server's git repo)?

Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196

2 Answers2

1

git push origin Framework1:refs/heads/master should do the trick.

Uwe Kleine-König
  • 3,426
  • 1
  • 24
  • 20
0

Merge Framework1 into local master, then push origin master. You'll need to perform a clean merge locally before you start mucking up the remote server anyway.