About Git remote repository

Source: Internet
Author: User

As a distributed repository control system, Git is the owner of the local repository and can create branches and milestones in the local repository.

The problem arises when multiple people are needed to collaborate:

1. How to avoid branching clutter on shared repositories because users push all local branches to the shared repository.

2. How to prevent different users from developing a branch that creates the same name for different features, causing a conflict on the branch name.

3. What if git fetch,git pull and git push without parameters interact with that remote version and which branch?

When you say git branching, each repository interacts with at most one remote shared upstream repository. But actually git allows a repository to interact with any number of repositories.

Below I build several new repositories based on the remote Miam.git repository.

This allows you to have three warehouses based on the remote shared warehouse Miam.git in your local workspace. (The first is a clone followed by a URL without a name) is Miam.git, Miam1.git, Miam2.git

Let's see what branches are included in the Miam.git remote shared repository?

The original remote shared repository has three branches.

But executing the GIT branch command locally checks the branch,

About Git remote repository

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.