In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "how to configure Git defaults to push the current branch", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to configure the Git default push current branch.
By default, git push updates all remote branches. However, you can configure git to update only the current branch upstream.
Git config push.default upstream
This means that when git push is executed, git will only update the current (checked out) branch.
Other valid options include:
Nothing: unless refspec is explicitly given. This is mainly aimed at those who want to avoid mistakes bluntly.
Matching: push all ends with the same name. (default options prior to 1.7.11)
Upstream: push the current branch to its upstream branch. Only when you push to the same repository that would normally be extracted (that is, the central workflow) does not need the same name for local and remote branches.
Tracking: deprecated, please use upstream reverse.
Current: push the current branch to the receiving end with the same name. Work in both central and non-central workflows.
Simple: [available from version 1.7.11] in a centralized workflow, the upstream working mode is as follows. If the name of the upstream branch is different from that of the local branch, add the security that rejects push. When pushing to a different remote control than the one you usually pull, press the present one. This is the safest choice for beginners. This mode has become the default mode in Git2.0.
You can configure Git globally to affect the behavior of all workspaces:
Git config-global push.default upstream at this point, I believe you have a deeper understanding of "how to configure the default value to push the current branch", might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.