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