我使用Bonobo Git Server,一切都很好.我将所有旧的SVN回购转移到GIT,即使是大回购(约3.5 GB)+760提交,"git svn clone"和"git push"工作得非常好.
但是没有一个小存储库:它只有3Mb(未压缩),只有1个提交.我总是得到的信息是:
efrror: RPC Failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我已经在这里修改了bonobo webconfig ,我已经完成了这个配置命令.
那么,任何人都有任何其他线索?
我试图将我的本地仓库(在CentOS服务器上设置)推送到在GitLab上初始化的远程空仓库.我是这样做的:
# initialize a repo on local
git init
git config --global user.name jdhao
git config --global user.email jdhao@xxxxx.com
# add all file in local repo
git add .
# commit the changes
git commit -m "first commit"
# add a remote repo
git remote add origin http://remote/url/jdhao/some_repo
# push change local change to remote repo
git push -u origin master
Run Code Online (Sandbox Code Playgroud)
我遇到了这里描述的RPC错误:
错误:RPC失败; 结果= 22,HTTP代码= 404
致命:远程端意外挂断
我按照这个答案更改了远程仓库地址:
git remote set-url origin http://remote/url/jdhao/some_repo.git
Run Code Online (Sandbox Code Playgroud)
现在我可以将本地仓库推送到远程而不会出错.
但是对于在我的Windows机器上设置的另一个本地仓库,我可以将其推送到gitlab远程仓库,而无需.git …
在我的 gitlab ci 管道中,我想在为主分支运行管道的任何地方推送一个标签。但问题是我无法将标签推送到存储库上。
我正在尝试使用 GITLAB_TOKEN 推送 git 标签
image:
name: X
entrypoint: [""]
stages:
- deploy
deploy:
stage: deploy
script:
# Generating new tag version using stk utility
- git config --global user.email $USER_MAIL
- git config --global user.name $USER_NAME
- git config --global http.postBuffer 52428800
- git remote set-url origin https://$USER_NAME:$GITLAB_TOKEN@${CI_PROJECT_URL:8}
- export NEW_TAG_VERSION=<generating new git tag>
- echo $NEW_TAG_VERSION
- if [ $CI_COMMIT_REF_NAME == "master" ]; then \
- git tag -a v$NEW_TAG_VERSION -m "[skip ci] new …Run Code Online (Sandbox Code Playgroud)