Repo-git Getting Started with

Source: Internet
Author: User

Repo Unified management of multiple Git repositories

Repo Init-u URL in the current directory to install the warehouse, generate. Repo

. Repo/manifest.xml point to Tag

Repo Sync update Download ==> * (no branch)

Repo start Master–all (Git branch-* (no branch) = Master)

Repo Branch View all existing branches under the project

git clone URL clone code repository: git checkout + branch_name download

Git status State

GIT Branch Branch name-Create

Git checkout branch name-Toggle

Git branch-a View all branches of the current warehouse

Git add adds git admin in the current under all.

Git checkout–filename remove changes do not commit

Git commit-a-M "" Force comment upload

Git commit–amend appends the previous commit. Modifiable Annotations Change-id

Modify git default editor nano for Vim:git Config–-global core.editor vim

Git reset–mixed head~2 fallback 2 steps

Git merge branch name merges with current branch

Git Remote View repository

git fetch remote repository name crawl remote repository all data/git merge remote branch: Local branch/git rebase remote Branch name

Gerrit commit Gerrit Push remote warehouse name local branch name: refs/for/Remote Branch Name

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Repo-git Getting Started with

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.