Previous: , Up: Remotes   [Contents][Index]


7.1.2 Remote Git Variables

These variables can be set from the transient prefix command magit-remote-configure. By default they can also be set from magit-remote. See Remote Commands.

Variable: remote.NAME.url

This variable specifies the url of the remote named NAME. It can have multiple values.

Variable: remote.NAME.fetch

The refspec used when fetching from the remote named NAME. It can have multiple values.

Variable: remote.NAME.pushurl

This variable specifies the url used for fetching from the remote named NAME. If it is not specified, then remote.NAME.url is used instead. It can have multiple values.

Variable: remote.NAME.push

The refspec used when pushing to the remote named NAME. It can have multiple values.

Variable: remote.NAME.tagOpts

This variable specifies what tags are fetched by default. If the value is --no-tags then no tags are fetched. If the value is --tags, then all tags are fetched. If this variable has no value, then only tags are fetched that are reachable from fetched branches.

User Option: magit-remote-set-if-missing

This option controls whether missing remotes are configured before fetching, pulling, pushing and rebasing.

When nil, then commands such as magit-pull-from-upstream and magit-rebase-onto-uptream are not available as suffix commands if the push-remote or upstream is not configured.

When non-nil, then these commands are always available in their respective transient, but if the required configuration is missing, then they do appear in a way that indicates that this is the case. If the user invokes such a command, then it asks for the necessary configuration, stores the configuration, and only then performs the action.

This option also affects whether the argument --set-upstream is available in magit-push. If the value is non-nil, then that argument would be redundant. But note that changing the value of this option does not take affect immediately, the argument will only be added or removed after restarting Emacs.


Previous: , Up: Remotes   [Contents][Index]