user187809
user187809

Reputation:

In Git, how to push a branch to bare, without merging it to master?

I have master and a branch (b1) on my local machine. Is it possible to push b1 to remote bare, without merging b1 to master? And then pull from bare, into another repository?

Upvotes: 1

Views: 103

Answers (1)

Gareth
Gareth

Reputation: 138082

Yes, like this:

$ git push bare b1

Upvotes: 2

Related Questions