I have inherited an Android project that uses the Gerrit and Repo tools to manage the Git repositories on a VM. My normal work flow involves using the git add and git commit commands to work on my local branch and using repo sync and repo upload to update the remote. After repo upload I use Gerrit to approve changes for myself and others. This is working okay except that I cannot figure out how to upload the tags I have created on my local branch. I have tried using the git push --tags command directly but I get an error the the repository is not exported. I assume that is because the repo upload command does something different and the git push command is trying to violate the rules. I am obviously new to this and would appreciate any help. Thanks.
相关问题
- Writing a Android System app that uses KeyEvents t
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
For upload purposes, the Repo tool is only capable of uploading commits for review. It can't upload tags. You can use
git push --tags
just like you would with any other Git server. Just make sure you have the necessary permissions; in particular you'll need Push Annotated Tag for refs/tags/* (and probably Push Signed Tag too), Forge Author, and Forge Committer. The latter two are required for you to be allowed to upload tag objects created by someone other than yourself.