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.

26 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
48 views

Jenkins build fails when no commits in the code (ChannelSftp.throwStatusError)

I have built a jenkins pipeline for executing a test on a windows server. Once the automated test report is generated on the windows server, it ships that report to a different server. There are ...
Kasun Wimaladarma's user avatar
2 votes
0 answers
312 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 ...
José Cabo's user avatar
2 votes
0 answers
116 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)...
Kashyap's user avatar
  • 121
2 votes
0 answers
52 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 ...
FabianTe's user avatar
  • 121
1 vote
0 answers
774 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 ...
lenny's user avatar
  • 111
1 vote
0 answers
939 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 ...
not2savvy's user avatar
  • 111
1 vote
1 answer
8k 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 ...
Akshay Hiremath's user avatar
1 vote
0 answers
301 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 ...
goose's user avatar
  • 21
1 vote
1 answer
804 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 ...
Andrew Eells's user avatar
1 vote
0 answers
60 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 ...
James T Snell's user avatar
1 vote
0 answers
162 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 ...
dzhi's user avatar
  • 111
1 vote
1 answer
66 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 ...
user2786484's user avatar
0 votes
1 answer
49 views

How to update GitHub issue commit links after migrating code and issues from another repository?

We are an organization with multiple repositories in GitHub which we are merging into a monorepo. We have no issues with the mechanics of how to do this: Use something similar to the method outlined ...
user533676's user avatar
0 votes
0 answers
15 views

Git clone failure

I've compiled git (configure && make) 2.35.3 on centos and ssh clone succeed but https clone fails with fatal: unable to access '/root/etc/gitconfig': Permission denied My git config is in my ...
Dave Brunkow's user avatar
0 votes
0 answers
54 views

Tekton run Git-Clone with non-root-user

I am new to tekton I want to clone a public github repo. I created the service account and pv/pvc. However, when I try to run the pipelinerun I got permission denied error. {"level":"...
Kaan Ateşel's user avatar
0 votes
0 answers
86 views

Get all modified files with pipeline and Jenkins

I'm trying to get all changed files in repository, by running bash script inside Jenkins pipeline sh '''#!/bin/bash files=($(git whatchanged --name-only --pretty="" origin..HEAD)) ''' But ...
Neb's user avatar
  • 1
0 votes
0 answers
17 views

How to make each user run with its own credentials in my local Git?

I have a local git version control installed on RedHat 8 server. When I run git add *, it asks me to provide the sudo permissions which is sudo git add *. This makes the add run with the root for me. ...
Mohamed Eleraqy's user avatar
0 votes
3 answers
131 views

Estimate storage space for a git server

How to estimate the space a git repository will take on a source version control server? For example, given k commits every day, with x kB of code per commit, my repository will take n GB of server ...
user2315856's user avatar
0 votes
1 answer
176 views

Why is Azure Repos Git Checkout sometimes returning a Status code 128?

We've migrated from a on premise GitBlit to Azure DevOps last week. Our builds are now suffering from periodic error while cloning the git repo. See example output. Main error is probaby returned ...
Lieven Cardoen's user avatar
0 votes
0 answers
186 views

is it possible to get web application url from branch without publishing it?

When working on the task we create git branch (AzureDevOps). In this branch we modify code in VS and can run web application on localhost. When it's done we commit changes and create PR. To test it ...
Alexan's user avatar
  • 101
0 votes
1 answer
200 views

Azure DevOps Build Validation of other repo's pipeline: "while loading the YAML build pipeline. Object reference not set to an instance of an object."

This (nearly empty) Azure DevOps pipeline yaml fails when initiated because of a PR from another repo's Build Validation: azure-pipelines.yaml of "App A": pool: name: default steps: - ...
Jason Kleban's user avatar
0 votes
1 answer
2k views

Why don't I see conflicts in git, but ADO shows conflicts, and how to fix this?

I have already read How to resolve merge conflicts in Azure DevOps current UI but nothing there helped. Also, no, I cannot use "Pull Request Merge Conflict Extension", I am not the admin of ...
Dave's user avatar
  • 101
0 votes
1 answer
474 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 ...
Abdelrhman Mostafa's user avatar
0 votes
0 answers
103 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 ...
Mandy's user avatar
  • 1
0 votes
1 answer
274 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 ...
wtdmn's user avatar
  • 1
0 votes
2 answers
530 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 ...
dtrunk's user avatar
  • 101