Can I use the definition of a remote device on the remote control?

Let's say I have two remotes: originand upstream. Is there a way that I can push the object upstreamto originso that other people who cloned my repo from origincan run something like git fetch upstreamwithout additional configuration?

+4
source share
1 answer

Not directly. The configuration information for upstream streams, like almost all git configurations, is located in .git/configwhich is not considered a β€œpart” of the repository.

git add , .git/config. script, git config, , git add script. , upstream.

(Git : "" . , : " script, ", .)

+2
source

Source: https://habr.com/ru/post/1534316/


All Articles