gitlab

cloning a repo into a new project and then push it to gitlab

∥☆過路亽.° 提交于 2019-12-08 04:58:53
问题 I have a need to clone an existing repo into a new one. Repositories are hosted on gitlab. For now i have created a new gitlab repository , and cloned the existing repo into the new one. mkdir newDirectory cd newDirectory git clone ssh://git@git.xyz.com:8888/Project/repo.git git remote rm origin ( to remove the origin frm existing repo) git remote add origin ssh://git@git.xyz.com:8888/Project/Newrepo.git upto here everything worked fine. i checked for branches using command git branch -a - it

Can't push to GitLab repository from local server (hooks declined?)

走远了吗. 提交于 2019-12-08 04:46:47
问题 I have a local Git repository on the same server as a GitLab repository. I could pull, but not push. Since I am on the same server, I haven't bothered with SSH keys. Looking at GitLab's hooks tab, nothing is shown (Note that I have never used hooks, and really don't yet know their purpose). How is this resolved? Thank you [root@vps bidjunction]# git remote -v origin /home/git/repositories/root/bidjunction.git (fetch) origin /home/git/repositories/root/bidjunction.git (push) [root@vps

GitLab - ignore specific files in target branch

浪尽此生 提交于 2019-12-08 04:28:20
问题 I am using GitLab in my project and I have a quite specific workflow. I have 2 branches " Dev " and " Release " as shown below. When I submit a merge request from Dev to Release, the config files are also getting overwritten with that of Dev branch. But ideally config files have to be different for both of these branches. I tried to use merge=ours . But it didn't serve my purpose as it will not override until and unless there is a conflict in config files. I don't want to add these files in

Installed GitLab and now existing Git repos on same server are inaccesible

你离开我真会死。 提交于 2019-12-08 04:16:21
问题 I had a basic git server running for a while, and decided to install GitLab (on the same server) for the GUI, permission control, merge requests, etc. After installing GitLab, none of my repos from the original git server are accessible. I get the following error when trying to clone a repo or push to a repo... git clone git@mygitserver.com:repositories/myrepo.git Initialized empty Git repository in /home/myuser/myrepo/.git/ fatal: protocol error: bad line length character: No s And when I

GitLab Continuous Deployment to Azure Web App

徘徊边缘 提交于 2019-12-08 04:13:06
问题 I want to be able to use Continuous deployment to an Azure webapp deployment slot from a GitLab repo.. Specifying the branch so i can have a staging and develop slot for these respective git repo branches. Using the two links below i managed to configure my website to use continuous deployment on one of my deployment slots. https://forum.gitlab.com/t/is-there-true-gitlab-azure-continuous-deployment/2162/4 https://github.com/projectkudu/kudu/wiki/Continuous-deployment However since this is a

GitLab - ignore specific files in target branch

只愿长相守 提交于 2019-12-08 04:03:24
I am using GitLab in my project and I have a quite specific workflow. I have 2 branches " Dev " and " Release " as shown below. When I submit a merge request from Dev to Release, the config files are also getting overwritten with that of Dev branch. But ideally config files have to be different for both of these branches. I tried to use merge=ours . But it didn't serve my purpose as it will not override until and unless there is a conflict in config files. I don't want to add these files in .gitignore , as any changes to these files will not be committed in Dev branch. Can someone please guide

Coping with gitlab ssh key syncronization bug

浪子不回头ぞ 提交于 2019-12-08 03:45:07
问题 I attempted to use a solution posted here: GitLab v5.0 git push problems to fix the ssh keys getting out of sync problem. However, when I run the rake command as both root & git users on the repository server I get the following message: root@gitlab /home/git# rake gitlab:shell:setup RAILS_ENV=production --TRACE No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:495:in `raw_load_rakefile' /usr

Pushing to multiple git URLs with set-url and its pitfalls

南楼画角 提交于 2019-12-08 03:28:09
问题 I want to setup a gitlab server on my local server and also use gitlab cloud as an offsite backup. Whenever a developer pushes their work i want it to go to both gitlab servers. I will do this using the following git commands git remote set-url --add --push origin git://my_local_repo_url git remote set-url --add --push origin git://my_gitlab_com_repo_url I am concerned though that the two servers could go out of sync easily. What would happen if one of the servers was down during the push so

sbt assembly fails due to different file contents found

心已入冬 提交于 2019-12-08 02:34:19
问题 I am trying to build a project in GitLab. In gitlab-ci.yml, I ran sbt assembly and encountered annoying exception. [error] (soda/*:assembly) deduplicate: different file contents found in the following: [error] /root/.ivy2/cache/io.netty/netty-buffer/jars/netty-buffer-4.0.42.Final.jar:META-INF/io.netty.versions.properties [error] /root/.ivy2/cache/io.netty/netty-common/jars/netty-common-4.0.42.Final.jar:META-INF/io.netty.versions.properties [error] /root/.ivy2/cache/io.netty/netty-codec-http

Gitlab does not load assets

送分小仙女□ 提交于 2019-12-08 02:27:55
问题 Gitlab does not load assets. I am using Gitlab 5.0 with Apache server. Can someone help me? Thanks in advance! 回答1: I am assuming you use ProxyPass and relative path. Stop GitLab service Run this in your /home/git/gitlab folder : bundle exec rake assets:precompile RAILS_ENV=production RAILS_RELATIVE_URL_ROOT=/gitlab (Make sure to replace /gitlab to whatever you have given in unicorn.rb) Start the service A thread you can refer: https://groups.google.com/forum/?fromgroups=#!topic/gitlabhq