git-defpath creates additional remotes for a Git repository. Remotes that can be setup includes ssh-based push paths, remotes for upstream repositories and forks. This is a Git port of the OpenJDK Code Tools defpath.
Configure an SSH based push path for a repository cloned via HTTP(S):
Configure a remote named "upstream" for the upstream repository for a personal fork:
Configure a remote named "fork" for the personal fork of an upstream repository:
Configure the default value for the
--username flag (to "ehelin" in the below example):
git-defpath to always compute the push path based on the pull path: