Tag: gitlab

What happens when I accept a pull/merge request which is behind master?

I’m reviewing pull requests/merge requests using GitLab’s web UI. Usually I accept them via this web UI but from time to time I’ve seen stuff from other merge requests went missing when I didn’t rebase master onto the branch before accepting it. So can you tell me what happens when I accept a pull request/merge […]

Git: Switch between forks, and create pull-request back

I have a git project, which each user has it own fork. I have cloned the original fork, and now I need to go to another fork, to make some code changes and then create a PR from my fork to the original. I’m loosing how to switch between forks, for example: I’m at gitlab.aws.site.net:webapp/webapp.git […]

Gitlab daily backup to self-hosted instance

My company and I extensively rely on Gitlab for all our daily requirement mapping (issues, new features and bugs) and checking-in code. With the recent outage that Gitlab faced, we were locked out, and couldn’t do anything and were scared that we had lost all our issues. We not want a standalone backup of our […]

How to get the raw content of a file through GitLab REST API?

The following REST Url of GitLab API gives me the repository tree of a project. Get Repo Tree (WORKS) https://gitlab.gspt.net/api/v3/projects/2931/repository/tree?private_token=XXXX Output: [ { “id”: “a49d11794ed56db7f935abfd61002aef67159d10”, “name”: “src”, “type”: “tree”, “path”: “src”, “mode”: “040000” }, { “id”: “0fbd98527d4b36e3d22c164293d8fd8eee4d18cd”, “name”: “.gitignore”, “type”: “blob”, “path”: “.gitignore”, “mode”: “100644” }, { “id”: “0ef0da472176f2e6a24843ac9d4bb738c8310d23”, “name”: “pom.xml”, “type”: “blob”, “path”: “pom.xml”, […]

Install GitLab on box with existing Git server

I’m currently in the process of seeking a GUI to add to our existing Git setup, we’ve looked at a few options but GitLab seems to be at the top of the list due to the documentation and community backing. One of the things holding us back from moving forward with the integration is the […]

git delta compression and its uses

When I executed git push, it displayed following output Counting objects: 214, done. Delta compression using up to 4 threads. Compressing objects: 100% (213/213), done. Writing objects: 26% (57/214), 27.44 MiB | 60.00 KiB/s According to this it is clear that Git uses delta compression method. How does delta compression work ? can it be […]

GIT: fatal: Not a git repository

I’m trying to add all my files from blog to git but I’m getting this error: fatal: Not a git repository: myBlog/crayon-syntax-highlighter/js/jquery-colorpicker/../../.git/modules/js/jquery-colorpicker I’m trying to add all the files like this: git add –v -A Any of you knows why or if there is any work around this? I’ll really appreciate your help

How to grant access to the production branch from a customer server?

I need deploy code by fetching the last commit in production branch from customers server. How can I grand a machine to access a git repo in gitlab. As I see the access management is user-based not ssh key-based (expect for current user)

How to get the last commits status in a branch of gitlab projects?

I have ‘n’ number of projects in gitlab. For each project, i have ‘n’ number of branches in each gitlab projects. I need to know the status of the last commit of a branch is success or failure using gitlab API. I have referred the below links https://docs.gitlab.com/ce/api/pipelines.html https://gitlab.com/gitlab-org/gitlab-ce/issues/20277 But I could not get the […]

Getting 404 while hitting inhouse gitlab repo through rest api for getting all the branches of a project

We have an inhouse gitlab hosted repo in our organization and I am developer who does not have admin access to it. However, I am the creator of this repository (https://gitlab.gspt.net/payments/dss) in gitlab and what I am trying to do is get all the branches within this repo through the rest api. After doing some […]

Git Baby is a git and github fan, let's start git clone.