gitlab

> You asked to pull from the remote '--prune'

天涯浪子 提交于 2020-01-03 03:31:09
问题 I'm getting this error when using one of my aliases bdone You asked to pull from the remote '--prune', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line. This is the alias I use alias.bclean !f() { git branch --merged ${1-master} | grep -v ${1-master}$ | xargs git branch -d; }; f alias.bdone !f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f I have nothing to commit

Rancher,K8S,使用问题记录(持续更新.)

牧云@^-^@ 提交于 2020-01-02 19:22:25
1、ingress-nginx,修改默认的Nginx上传大小: 使用Rancher的负载均衡,上传1M以上的文件报错,查看ingress-nginx容器,发现配置 client_max_body_size 1m; 解决办法: 创建ingress的时候修改参数: apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/proxy-body-size: 50m 2、k8s使用cronjob自动备份gitlab 常规情况为使用定时任务运行脚本,运行命令即可 gitlab-rake gitlab:backup:create k8s中运行的gitlab,使用cronjob定时运行脚本即可: 1、为了可以使用kubectl,需要使用kubeconfig,创建configmap 就叫kubeconfig: #kubeconfig默认放在/root/.kube/config kubectl create configmap kubeconfig -n gitlab --from-file=/root/.kube/config 2、创建备份脚本,configmap: 备份脚本如下: #!/bin/sh pod_name=$(kubectl get pods -l

【jenkins】jenkins上使用Git Submodule管理子模块

落花浮王杯 提交于 2020-01-02 10:38:39
在源码管理这里,新增以下配置 Use credentials from default remote of parent repository 是指更新的子模块,需要使用和主模块一样的认证。 此项目主模块在gitlab上加了公钥 需要子模块在gitlab上也加上同样的公钥 来源: CSDN 作者: intelrain 链接: https://blog.csdn.net/intelrain/article/details/103799013

How to reconnect to my git repository on GitLab from NetBeans IDE 8 and Jenkins?

谁说我不能喝 提交于 2020-01-02 09:24:27
问题 Something seems to have gone wrong with my NetBeans git set-up. I am using NetBeans IDE 8.0.1 on Windows 8.1 and I have a private git repository hosted on GitLab.com. But ever since GitLab updated to version 7.3.1 I am unable to connect to the git repository from NetBeans. It does not matter if I fetch, pull or push, I get the same response: "Cannot connect to the remote repository at https://gitlab.com/<group-name>/<project-name>.git" (group name and project name omitted for privacy reasons)

how to connect gitlab with openProject

别说谁变了你拦得住时间么 提交于 2020-01-02 08:55:34
问题 Hello I have a requirement is it posible to connect somehow gitlab with openproject? I have seen this https://www.openproject.org/news/57-openproject-github-integration-plugin-released but not sure if it will help somehow with gitlab 回答1: In the past, you could connect most git repositories to a project, so you could also connect those on GitLab. However, the git proper integration seems to be broken for some time now. The GitHub integration plugin you mentioned will not work with GitLab

How to tag a single file? or How do I download a specific file? - GIT

若如初见. 提交于 2020-01-02 08:15:42
问题 I would like to add a tag to a file to easily download that file and not the entire branch. How do I download a specific file in GIT? 回答1: I am not aware of any way to tag specific files in git . For the second question: How do I download a specific file in git ? The following works only if you mean "download while in a git repository" (That's how I understand your question, if you mean with git without having the repository see Get a single file from a remote git repository or Not able to

add cloned gits to personal Gitlab

时光毁灭记忆、已成空白 提交于 2020-01-02 07:23:13
问题 I own a Gitlab account. In a running repository I have cloned projects from github but on git add . they won't be tracked. How do I add cloned projects to my Gitlab account? git branch -vva * master c9ef011 [origin/master] te remotes/origin/master c9ef011 te 回答1: Once you initialize a project in GitLab, you'll see a page like this: The important part is adding the remote : git remote add gitlab git@mygitlaburl:namespace/myproject.git You'll need to add your public key by clicking on Profile

Push to GitLab repository within CI server (deploy keys)

99封情书 提交于 2020-01-02 03:17:09
问题 GitLab has this nice 'deploy keys' feature useful for CI servers to have read and pull access to a repository as they usual don't need more than that. However, I need to create and push a tag to the repository to tag each release that is built from the 'master' branch. To be more specific, I have a Jenkins job that will build a release version from the 'master' branch every time a build is triggered. If the job is successful, I want to tag the 'master' branch HEAD with the release number for

Are gitlab deployment keys read only?

对着背影说爱祢 提交于 2020-01-02 02:12:06
问题 Are gitlab deployment keys read only? I need to clone on ci server using a deployment key and then push the tag created by the ci process. is that possible using a deployment key? 回答1: Edit2: This change currently has a sideeffect, as there are no users on deployment keys. So you will find some ugly messages like ERROR -> POST-RECEIVE: Triggered hook for non-existing user . The cache-invalidation (and possibly other things) are therefor not handled on write pushes through deployment-keys,

Move .git repo to parent directory [duplicate]

烂漫一生 提交于 2020-01-01 23:12:31
问题 This question already has answers here : My Git repository is in the wrong root directory. Can I move it? (../ instead of ./) (9 answers) Closed 3 years ago . I have a subdirectory named "www" that is a repo: site |-- www/ | |-- .git/ | |-- index.html |-- design/ | |-- images.jpg I'd like to change the repo to the parent directory so that the repo structure mirrors the original file structure as follows: site |-- .git/ |-- www/ | |-- index.html |-- design/ | |-- images.jpg Can this be done?