Kan Li
Kan Li

Reputation: 8797

Separate tracking branches (not remote) for git pull and push

There are answers about different remotes for push and pull, but is it possible to have different tracking branches for pull and push, from same remote, or even from different remotes?

In my workflow, it's often to pull from master branch of upstream, and then push to another personal branch of upstream, or some branch of another personal remote.

Upvotes: 1

Views: 78

Answers (1)

jthill
jthill

Reputation: 60255

pull from master branch of upstream, and then push to another personal branch of upstream, or some branch of another personal remote.

You've outgrown the factory default push.default of simple. current or Git's original matching will serve.

Upvotes: 1

Related Questions