git-reporepo reimplemented in Golang and many others git-repo is repo reimplemented in Golang and with many other features.Using git-repo , a developer can create code reviews (pull requests) fromclient side directly. There will be no fork, no feature branches, and nowrite permission needed.
git-repo is a command line tool, which adds more sub-commands to git,and works for centralized git workflow like Gerrit, agit-flow of Alibaba.com,and other agit-flow alike protocols...
InstallationDownload or compile the binary of git-repo from this repository, and install(copy) the executable of git-repo to proper location, such as /usr/bin ofLinux and MacOS, and C:\Windows\system32 of Windows. After installation, execute the following command to validate the installation: Git aliases installed from git-repogit-repo installs some useful git configurations for user, some unique aliascommands are:
git peer-review => git repo upload --singlegit pr => git repo upload --singlegit download => git repo download --single Single repository modeCreate code-review directly from client sideClone a repository git clone https://codeup.teambition.com/gotgit/demo.git Create a local branch (optional) git checkout -b some/topic origin/master Create commits in worktree... Create code-review from command line:
There are many options for git pr (or git peer-review, or git review), pleasecheck the manual: Download code-review to local repository for reviewA new code-review (pull request) will be created or a old code-review will berefreshed after running git pr . Each code-review has a unique number, suchas pull request #123. Reviewer can download it using command , and make a code review in local worktree. Update code-reviewRepeated command by author will update the code review: If a reviewer wants to update a code-review, he or she can run: (suppose 123 is the code review ID, the reviewer just downloaded) Multiple repositoriesgit-repo supports android style multiple repositories management.
Init workspace from a manifest project. git repo init <manifest-url> Clone / update all repositories referenced in the manifest repository. Create a local working branch instead of detached HEAD on all repositories. git repo start --all some/topic Send changes to remote server to create code reviews. |
请发表评论