Questions tagged [git]

Use this tag for questions about Git, a free and open source distributed version control system, related to using Git for topics such as continuous delivery, monitoring, building SDLC infrastructure, etc.

Filter by
Sorted by
Tagged with
0 votes
1 answer
7 views

Can you delete project binaries from an Azure Devops repo

I have an existing repository in Azure DevOps that is currently tracking various /obj, /bin files (.dll, .pdb, .cache, etc.). I don't want to track these anymore; however I am worried that if I delete ...
  • 1
0 votes
0 answers
14 views

Auto-merge merge conflicts of specific files in AzureDevops

We are using self-hosted Azure DevOps to manage our git repositories, and the "Pull Request Merge Conflict Extension" by Microsoft DevLabs. When submitting pull requests, there often are ...
  • 101
1 vote
1 answer
19 views

How to compile Latex with Github Actions

I'm not sure if this is the right place to ask this but I'm basically using git and github for version control for writing my thesis. My idea was to have a github action that compiles the code ...
3 votes
1 answer
46 views

Gathering timespan statistics from Git

I would like to easily query git to answer a question like the following: How much time passed from when a developer made a git commit to when that commit was merged to a default branch from a feature ...
1 vote
0 answers
60 views

Best practice for building releases with Jenkins multibranch pipeline

We have started moving from Subversion to git (using Bitbucket, to be exact), and I'm unsure how to manage release builds with the multibranch concept. This is how we do it in Subversion: We have one ...
  • 111
1 vote
0 answers
32 views

Complete automatic release process (with versioning) on a multibranch pipeline?

We have projects that once in a while need to be released with all the changes already present in the develop branch. Every time we make a new release, we update the code with the new release version ...
0 votes
1 answer
45 views

What is manual, what is automatic in Continuous Delivery?

I've read lots of articles about the concept on the internet. I thought I got it, but some statements in other articles make me confused. In order to simplify and clarify things, I'll presume I use ...
  • 101
1 vote
1 answer
352 views

How to ansible-vault files as they are commited to Git

I'm trying to use ansible-vault to secure the secret files in my project before I push them to Git. There's loads of advice out there on how to set this up in part, but everything I've read is ...
1 vote
0 answers
2k views

Jenkins checkout GitSCM and git step how does it work internally and why

When I execute my pipeline and I go and see on the actual Jenkins slave, the checked out commit doesn't have latest changes. But the logs and actual files in the workspace on the Jenkins slave running ...
0 votes
1 answer
189 views

bitbucket pipeline to push commits to another repo

So this is the scenario i have right now, we have a repo (boilerplate) that contains our infrastructure code, docker files, and pipeline scripts, each time we create a new project we copy this repo to ...
0 votes
0 answers
22 views

Should our application configuration be stored in a separate repo?

I'm looking for best practices on where and how we should store our application configuration. We have a microservice architecture with hundreds of microservices. Each microservice has its own git ...
  • 101
2 votes
1 answer
45 views

Is the forking git workflow used outside of open source projects?

Here is the Forking workflow if you're not familiar with it. The company I work for is mostly comprised of historically open source developers. This has caused them to be stuck on the forking workflow ...
0 votes
1 answer
42 views

How can I create a dev. environnement using Azure DevOps?

I'm not sure if it's the right place to ask this question. So let me know, if it's not. I'm building a front end app with VueJs. I actually use 2 computer. I use the first computer as a "server&...
1 vote
1 answer
258 views

How can you do pre-merge testing in trunk based development?

Currently, we use a simple branching strategy, with a single main branch and one layer of feature branches; no branches on branches on branches. We also have many pipelines that run against each PR to ...
0 votes
0 answers
61 views

What is LDAP and how it is configured in Docker containers?

Background- I am new to working with linux and docker, and I have been told to configure LDAP in a "oraclelinux-8 arm64v8" Docker image. (so that kerberos lookup can be done) What I have ...
0 votes
1 answer
1k views

Create a folder in slave node using Jenkins pipeline groovy script

I have a Jenkins job which runs on a slave node on another machine, both master and slave run on windows. The slave node is being run as a windows service. The main repository has git submodule ...
2 votes
0 answers
51 views

Jenkins declarative pipeline with mvn, releases and versioned artifactory

We have a requirement to support human defined versions (not auto generated) for patch releases. I'm trying to figure out a way to do this in Jenkins. We have: BitBucket, Jenkins, Nexus/JFrog (either)...
  • 121
1 vote
0 answers
141 views

How to get merge request stats using Git CLI command?

I needed to get the final stats on a sample Merge Request with multiple commits on it. I have tried pulling in git ls-remote origin 'refs/merge-requests/*/head' then trying to get insertion and ...
  • 21
1 vote
1 answer
395 views

How to get all open Merge Requests using git command line?

I need to get all open Merge requests by author and if possible within a time frame. Tried using this command for Github where it works fine - git ls-remote origin 'pull/*/head' But in gitlab, this ...
  • 21
0 votes
0 answers
26 views

Unsupported certificate option "-t" at cpanel terminal

I'm creating a ssh key authentication in the cpanel terminal as recommended by cpanel, So I'll be able to integrate git version control: https://support.cpanel.net/hc/en-us/articles/4404218477207-How-...
0 votes
1 answer
209 views

How do I configure my AWS SSO-managed user with my public SSH key?

My AWS identity is SSO-managed, not an IAM user. I wish to upload my public SSH key (so as enable client UI access to CodeCommit) but am not the AWS account/organisation admin so cannot see what the ...
0 votes
1 answer
43 views

how to pull only git logs without pulling the whole file tree and diffs

I have a server that has limited storage space and I need to track a git repository, but I am only interested in the log messages and not the whole repository (blobs, diffs, tags, ...). the repository ...
  • 101
2 votes
2 answers
50 views

How to incorporate feedback from pull request

I am new to bitbucket. I tried to google it but unable to find exact answer for my question. I created a feature branch. Made few changes in the feature branch then I pushed/committed all the changes ...
0 votes
0 answers
9 views

Excluding tests from repository downloaded by users?

I am currently helping maintain a python code base using GitLab. Recently, I have introduced integration testing using a pipeline in the development branch. Unfortunately, the test directory is quite ...
  • 101
0 votes
2 answers
1k views

Git keeps asking for ssh passphrase when SSH is already defined in GitLab

I'm playing around with a personal GitLab account to get familiar with its' ins and outs. First, I followed this primer on setting ssh keys and added public and private ED25519 keys to ~\.ssh. I added ...
  • 101
2 votes
0 answers
44 views

How to push large codebase to lots of servers

I am currently creating a concept for a multi-stage release pipeline using Azure DevOps release pipelines. The software stack that should be deployed is a rather bulky PHP application that uses lots ...
  • 121
0 votes
0 answers
21 views

Restricting one module for one tf file

So I have file called main.tf in which I am calling the existing module for iam_role, but in same main.tf I have called one more module for service_role but I want to restrict that service_role module ...
  • 1
1 vote
2 answers
90 views

How to track deployments of multiple interconnected repositories

We are working with a ERP system (called Odoo, but that does not matter so much). It consists of many building blocks. Some of this modules/addons are dependent on others, some are standalone, but ...
  • 111
1 vote
0 answers
24 views

git-p4 rebase command fails when using "main" as the default git branch

I'm using the git-p4 script (doc reference, code reference) to drive some processes to synchronize code stored in Perforce Helix in to GitLab. It works fine for my needs, though now that GitLab ...
0 votes
1 answer
115 views

Gitlab build from multiple repositories - git submodules

I have gitlab repo ZERO (project) which serves as a code base for multiple websites (repo ONE, TWO, THREE..), these are also gitlab repositories. I am using gitlab CI/CD options, I want to be able to ...
  • 1
0 votes
1 answer
919 views

Using a conditional environment{ } directive in Jenkinsfiles

My Jenkinsfiles use the environment{} directive. I've been trying to set a condition where I invoke different variables depending on the GIT branch being builded. I've tried something like e. g. : ...
2 votes
2 answers
421 views

One or multiple git repositories for independent small parts of one larger project?

We are developing an Azure-based analytics platform that consists of several modules. Among other things, Azure functions, scripts for creating the infrastructure and scripts for initialising the ...
0 votes
1 answer
3k views

Jenkins: Dynamically git clone only the files required for a particular job from a monorepo

We have a huge ~20GB monorepo. For a particular Jenkins job, we do not need to clone the entire repo but only need a few sub-directories. The solution for this is of course git sparse checkout. ...
  • 101
0 votes
1 answer
43 views

When do I run applications on a server in a pod and when to run them directly on the base operating system?

I am trying to get started in the DevOps Field by setting up a small server currently with Virtualbox, later on for a small team. For my basic setup I plan to use gitea as self-hosted git and Jenkins ...
  • 101
0 votes
1 answer
862 views

Jenkins Docker - Make changes to gitconfig

I have a self-hosted Gitea organization, and the way to access the repos requires some "secret" extraheader in .gitconfig. (2FA is also enabled) When I look at Jenkins "Configure System&...
  • 103
2 votes
1 answer
44 views

Is there a better model for my CI/CD cycle?

I am having some troubles finding a better model for my CI/CD cycle. This is mainly gitflow issue. My current model : We have 2 bitbucket branches : master and develop. Both are linked via webhooks to ...
2 votes
1 answer
467 views

Azure Devops - workflow/strategy for uploading only changed files to shared hosting provider after a build of static website (Jekyll)

Scenario: I'm using the Ruby/Jekyll build process to generate a static website from markdown etc files via a templating process -- the same flow as the one used by Github Pages but instead of hosting ...
2 votes
1 answer
70 views

How to test pipeline changes in Azure?

I currently have a pipeline in Azure which consists of a bunch of YAML which eventually calls some terraform script to handle the deployment side. What is the best way to handle dev testing of changes ...
  • 121
1 vote
0 answers
128 views

Monorepo manifests image tag replacement in Github Actions

I have a mono repo with NodeJS app (or better said, components of an app). There are 3 apps in the repo, each has its own directory and Dockerfile: /core /worker /frontend There’s also /deployments ...
  • 111
1 vote
1 answer
4k views

Can you remove a commit made to a branch on AWS code commit?

I know of git rebase but don't know if it can be used with AWS code commit? Or if there's any other method of removing a commit to revert back to before it was made and merged?
  • 463
3 votes
1 answer
1k views

How to skip reviewer for project administrator pull request?

Is it possible to configure the repository to skip "At least one reviewer must approve the most recent iteration" in case the person who performs the Pull request is the project ...
  • 133
1 vote
2 answers
173 views

Command "git [command] --help" opens as HTML in my code editor - no output to terminal. How do I revert to default behavior?

When I type git reset --help I don't get output in the bash terminal, but a new tab opens in my code editor to reveal some dense HTML. How can I change Git's behavior to display the help message in ...
  • 11
1 vote
1 answer
48 views

Azure DevOps issue with GIT, Visual Studio and Azure (Umbraco)

I am completely new to Visual Studio, .net and Azure DevOps I have a problem with GIT using the GIT bits (rather than CMD), in Visual Studio I have a .Net application (Umbraco), that has been built ...
0 votes
1 answer
3k views

How to get branch hash using git command

I have JenkinsFile where I'm trying to get the hash for my current branch. I saw this post: https://stackoverflow.com/questions/9110478/how-to-find-the-hash-of-branch-in-git but when I tried to run ...
  • 319
0 votes
1 answer
609 views

Best practices to maintain forks of Git repository in an on-prem Azure DevOps Server

We have an on-premises Azure DevOps Server and like to use the Git workflow "Fork-Clone-Push-PR". In the moment of forking the system let allow us decide into which project and under which ...
2 votes
1 answer
576 views

Pass information between Jenkins Job builds

Please excuse my non-fluent terminology.. There is a Jenkins server, master and a few slaves, there is a pipeline job.. let's call it playground I run the job once, I want to save some data somewhere. ...
  • 123
1 vote
1 answer
59 views

Git feature branching strategy allows unapproved 'tag along' features

Context Our current operations consists of three servers: QA is a playground for devs to try out new features; Platform is the live customer facing application; Mock is a copy of Platform and ...
  • 11
1 vote
1 answer
51 views

Is there any other approach for tagging git branch using pipeline without credentials in pipeline code?

I was trying to tag a git branch using Gitlab CI. With the help of this answer from this community, How to tag source code using gitlabCI I can successfully tag a git branch from Gitlab CI pipeline. ...
0 votes
2 answers
256 views

Jenkins: Re-use repository with reference option and do changes on it

I would like to setup a Jenkins cluster where the slaves are building an Android ROM with some parameters like branch (e.g. lineage-16.0) and some optional patches. The whole repository will consume ...
  • 101
0 votes
1 answer
76 views

git reflog is showing plain text password used

We are using Jenkins Freestyle Project to push the changes on the remote server. We are executing shell script on remote host using ssh for it. To pull the changes on remote host, we are using origin ...
  • 1