How to set default push repository in Git?

Viewed 5149

How can I make git pull from git@source.com:... repository and git push to git@target.com:... repository by default?

In Mercurial I create .hg/hgrc with the following content:

[paths]
default = ssh://hg@source.com/...
default-push = ssh://hg@target.com/...

What is the way to set the same default behaviour in Git?

3 Answers
Related