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
0answers
9 views

Managing multiple “staging” branches in a git workflow

We're creating a migration workflow to move from SVN to Git, and we've hit a particular snag that is increasing the complexity of the proposed workflow. Some basic base for what we do in our current ...
0
votes
0answers
9 views

Setting up PR Build in Jenkins when raised from stash

Setting up a PR request to have a build run in Jenkins. Our source repository is Stash. Essentially, the PR will be from any branch (each developer will create their own branches) to develop I have ...
1
vote
0answers
11 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
1answer
29 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 ...
0
votes
1answer
37 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 ...
0
votes
0answers
29 views

getting error in Jenkinsfile - command not found

I'm trying to setup my company's first CI/CD pipeline, to build & deploy docker containers in gke, it has been a a great learning curve so far, however I'm stuck with error in Jenkinsfile /var/lib/...
2
votes
1answer
40 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. ...
0
votes
0answers
14 views

Trunk based (or similar) development, and small commits that depend on each other

I'm not sure if trunk-based development is strictly the right term here, but let me outline the process. Say I have some code like: //utils.js function someFunction(foo, bar) { //implementation } ...
1
vote
1answer
44 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 ...
0
votes
0answers
89 views

How to git clone over SSH in jenkins job using credentials system

I'm trying to set up a simple jenkins job that will clone a git repo. Most guides online suggest to use a username and password combination which is soon to be deprecated. Others involve generating ...
1
vote
1answer
27 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
0answers
8 views

How to backup an Asterisk configuration with git?

How would I use git or similar version control software to backup the configuration for an Asterisk VoIP SIP server? see also: https://en.wikipedia.org/wiki/Asterisk_(PBX) https://support....
0
votes
1answer
27 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 ...
0
votes
1answer
33 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 ...
0
votes
0answers
6 views

How to access Jupyterlab notebook for all github enterprise users

I have installed jupyterlab-git, jupyterlab-github extensions for Jupyter notebook. And tried to modify the global settings of GitHub baseURL from "github.com" to "enterprise.github.com&...
0
votes
0answers
12 views

How best to version large Gradle monorepo with many sub-projects?

I am working on a large (2m+ LOC) monorepo which has many components in it (50-60). Some of the components depend on each other (e.g. libA is depended on by project1 and project2). All of the ...
3
votes
1answer
48 views

Dedicated/Separate Git Repo as Terraform Remote Backend

I see that there are multiple options for Backends, however git isn’t one of them. I believe git can be used as a backend for tfstate, in the below steps: Create a dedicated git repo Commit the ...
0
votes
1answer
99 views

Jenkins Not pulling the latest commit into master or slave

I have a Jenkins pipeline where after every build I change a file(increase build version in a property file) and checkin back to the git repository. After a build, I commit some differnt code change ...
0
votes
0answers
18 views

Is there a repository size limit on gitlab community edition self-hosted?

I'm trying to get more git LFS space per repository by spinning a self-hosted version of Gitlab community edition on Azure (gitlab ce). Gitlab.com has a storage size limit of 10 Gb per repo. But what ...
0
votes
0answers
23 views

jenkins declarative pipe - withCredentials does not work

I am using git branch: '<branch>' , credentialsId: 'ID_JENKINS' , url:<tfs_server> to clone a repository, which works without problems. But when I would like to do the same with ...
1
vote
0answers
29 views

Azure deploy pipeline with/without approval on separated enviroments

I have two separate environments under my repository: development (Approvals are not configured but the environment exists) production (Approvals rules are configured via dev.azure.com UI) The ...
1
vote
1answer
58 views

What's in THIS environment?

We work on multiple java web projects going on at the same time and those are all being tested on several different QA environments. I'd like to show on our support portal what projects are in what ...
2
votes
1answer
29 views

Is it possible to view all changes made on a Git feature branch in Azure Devops?

Azure DevOps offers the overview of changes made in a branch when a PR is created. However, sometimes I'd like to have access to that overview when viewing a branch without the need to create a PR (or ...
3
votes
2answers
45 views

What is the way to update images in a configuration git repository when doing gitops?

i'm trying to do gitops I have a Configuration repo containing k8 manifests and different app repos. 1) App repo's CI build docker images and pushes into registry. 2) App repo's CI commits into ...
1
vote
1answer
42 views

Continuous deployment

I have a nodejs application using expressjs. This server is handing a website built on vuejs, an application using angular and another angular app. Everything is working and I deployed to AWS eb using ...
1
vote
0answers
34 views

How to prevent changes without Jira ID

Some times we can push changes without Jira ID. I want to prevent changes without mentioned `Jira ID'. Suppose projects named like: abc, def, ghi And have Jira ID's like: 1234-abc, 2525-def, and ...
2
votes
1answer
57 views

Branching model for nightly deploys

I'm a lead developer for a small B2B SaaS company, using Django and AWS. We currently run biweekly deploys after hours with a mostly-automated custom Fabric-powered tool. We're currently exploring ...
2
votes
1answer
189 views

Using Azure Devops with Git Workflow

I have used Azure Pipeline for CI/CD on various small projects that I have worked and it has been a great experience. I am working now on a decent size project that has a web app, mobile(xamarin) app ...
4
votes
3answers
61 views

How long is it appropriate to keep old feature branches in git?

I am on a large team with many developers. We have a large codebase that has many feature branches from our large group of developers. We are accumulating many feature branches. We generally look to ...
2
votes
1answer
62 views

What approach should I take to store environment variables for a repo?

I am setting up a new infrastructure as code repository for a small to medium size project. The problem I am currently trying to solve is how to store my environment variables such that they can be ...
3
votes
1answer
19 views

How to push to other origins using Azure Pipelines?

Inspired by Necessity of mirroring git repos for small team considering switching to Azure: How does one use Azure Pipelines to push changes to a secondary/backup origin on push? Possible use cases: ...
3
votes
1answer
87 views

Necessity of mirroring git repos for small team considering switching to Azure

Question: Are there any benefits to mirroring our git repos outside of Azure devops for a small (~7) team of developers who all work in the same office? Background Information I'm a developer ...
5
votes
1answer
93 views

How to keep many servers (5000+) up-to-date?

Initially asked here: https://stackoverflow.com/questions/60674502/how-to-keep-many-servers-5000-up-to-date-with-git-and-its-rate-limits The initial post: We're making a php service that will run on ...
1
vote
0answers
215 views

Jenkins trigger build if shared library changes

I have Jenkins Pipeline job define in my git repo as. // File: deployment/jenkinsfiles/staging/Merge @Library("my_shared_lib") _ import com.company.myteam.Constants pipeline { agent { label "...
0
votes
1answer
48 views

exponential backoff for git pushes?

We've got a ton of jobs in our Jenkins that all do git pushes, sometimes simultaneously. Unsurprisingly, if two jobs try to push at the same exact time, one will succeed while the other fails. My knee-...
0
votes
2answers
1k views

Why can't I connect to Gitea using ssh via command line?

My computer: Windows 10 Pro 1909 I have a Gitea server running in my office, at local IP address 10.100.10.24, with SSH configured on port 22000. Gitea is configured to use port 3000 for HTTP. I'm ...
1
vote
1answer
394 views

Jenkins-Deployment failure, Build successful

I have been trying to work on Jenkins and I'm able to Build the code but unable to deploy on to the Tomcat server. Have checked the users.xml file and Started by user nakul Running as SYSTEM ...
3
votes
1answer
101 views

When to “npm publish” when using git flow

I'm using the following resources as a guide to git flow: git-flow cheatsheet git-flow Using git-flow to automate your git branching workflow However, none of them explicitly mention at what point ...
4
votes
3answers
15k views

How to resolve merge conflicts in Azure DevOps current UI

I have followed the instructions on command line: https://docs.microsoft.com/en-us/azure/devops/repos/git/merging?view=azure-devops&tabs=visual-studio all I want to do is resolve this merge ...
1
vote
1answer
508 views

Jenkins Deployment Issue - Unrecognized SSL Message, Plaintext Connection?

I've been attempting to build and deploy a local copy of a repository, whilst still providing the remote depository to Jenkins, to a Tomcat version 9 server. I have both Jenkins and Tomcat running on ...
2
votes
0answers
13 views

Bitbucket: Is there any option to restrict deletion of release branch only after it is merged to master

We are using GitFlow workflow. After merging the release/* branch to master, we need to close the branch. For this task, we need to provide deletion access to pull request merger but in this case, ...
2
votes
1answer
292 views

Does GitHub support VFS for Git?

NOTES: I really hope that this question hasn't been asked before and as far as I know, only Azure DevOps Service (Azure DevOps on cloud) and Azure DevOps Server 2019 (Azure DevOps on-premise) fully ...
0
votes
2answers
4k views

Jenkins Pipeline - Clean before checkout - git clean -fdx “failed to remove: Directory not empty”

I have my Jenkins build configured to "Clean before Checkout" for its git source: Job Config > Source > git > Behaviours > Clean before checkout This results in Resetting working tree ...
4
votes
1answer
69 views

Deploying and testing features on a server by more than one developer

I have 4 environments (prod/preprod/SIT/DEV), also two main branches (Master & Develop), two developers work on features (One & Two). Developer One creates a feature (Feature A), he then ...
4
votes
2answers
6k views

JenkinsFile to get git branch name

I want to get git current checkout BRANCH NAME in my Jenkins file here is the code snippet... Here I am trying to push a file to my current branch I have tried many things could not find it... ...
5
votes
1answer
2k views

Multi-language Monorepo

We currently have a "front-end" git repository that is all of our JavaScript client apps, and a "back-end" git repository containing all back end APIs written in .NET Core. There is also a few other ...
1
vote
0answers
16 views

Parameterized git push to tfs

Is it possible to transmit additional strings/instructions to tfs with a parameterized git push? I think it can be managed by an instruction as part of the commit message, but I don't want to see ...
2
votes
1answer
66 views

Best solution for code develop

What is the best git solution for java code development? Make my own git server? Developers (Linux, Mac, Windows) are working on their local computers, then they are using my own git server. Would ...
0
votes
1answer
2k views

jenkins credentials not used as expected when cloning git repo

I am trying to setup a jenkins pipeline for my IaC code validation, for this I'd like jenkins to clone a gitlab (hosted) repository, for this purpose I setup a credential using username / key type, i ...
1
vote
1answer
243 views

Jenkins Git Client Plugin Issue

Git Client plugin previously was version was version:3.0.0-rc(beta) which has security vulnerabilities so upgraded to latest version:2.8.6 (latest). But unfortunately all the dependency plugins were ...