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
4 votes
1 answer
55 views

I need a good tool for running a series of Spring Boot based tools on Docker, where each needs a web page and a database connection

These are pretty much just tools our support and ops departments need to solve small tasks which crop up as a routine sideeffect of our main business operation. They might need to find all instances ...
tofagerl's user avatar
4 votes
1 answer
1k views

Automatic Docker Hub builds from GitLAB, not github

As per title. I would like to configure automated builds on Docker Hub, as specified here. My build context (the build context is a repository containing a Dockerfile) is hosted in GitLAB.
MrR's user avatar
  • 143
4 votes
2 answers
2k views

Jenkins configuration to support multi-config multi-branch CI

Here are my requirements and I go back-and-forth on how to achieve them: Must build Java spring-boot apps Artifacts must be released to artifactory repository Docker image to be built directly ...
Christian Bongiorno's user avatar
4 votes
1 answer
979 views

How to implement GitLab Flow branching model for microservices?

Recently I’ve been looking into alternatives to the git flow branching model and since I’m already using GitLab, I stumbled upon their own branching model called GitLab flow. I’m currently trying to ...
Claudio's user avatar
  • 41
4 votes
3 answers
267 views

How to automatically publish git releases/comments to the site?

Sorry if title isn't correct. I'm trying to figure out what to search for on this matter. I'm looking for the easiest way to automatically have my semantic versioning and commits visible on my site ...
gfrobenius's user avatar
4 votes
0 answers
642 views

Problems with integrating Python script in a Bash script Git pre-receive hook [closed]

We have a pre-receive hook script in a bash shell script that enforces commits with messages having the right ticket number in a pre-defined format. We also have a separate python script that can be ...
sage's user avatar
  • 199
3 votes
2 answers
659 views

Need a folder, always updated with the latest code from Git

I wonder if anyone knows of a tool or method that I can use to accomplish my goal of having a folder that always contains a copy of the latest code from my Git repository. I need it to work ...
Niels Brinch's user avatar
3 votes
2 answers
3k views

Does HA-git exist?

For the second time in three months, bitbucket is down https://status.developer.atlassian.com/ Now I wonder whether HA-git is possible or we should switch. Thanks to this it will be hard to finish ...
030's user avatar
  • 13.1k
3 votes
2 answers
372 views

Git - Everyone Pushing to Same Branch in Different Files

Database team is implementing code changes, using Visual Studio SSDT database projects with Git source control. Everyone is pushing to main Release branch with code review (only 5 developers on the ...
MarkAllison's user avatar
3 votes
2 answers
564 views

How to handle updating binary files on a dev server with git

I have a dev site on a server which is synced with my git repo. The git repo does not track the media/ folder. I want to update the content on the dev server to mirror the live server, so will copy ...
karatecode's user avatar
3 votes
1 answer
2k 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 ...
Jim ReesPotter's user avatar
3 votes
1 answer
2k 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 ...
Goerman's user avatar
  • 133
3 votes
1 answer
1k 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 ...
Libin Joseph's user avatar
3 votes
1 answer
1k 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 ...
Savvly's user avatar
  • 33
3 votes
1 answer
377 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 ...
Plastikfan's user avatar
3 votes
2 answers
443 views

Automating creation of new VM and pushing code to server

Automating creating of new VM and pushing code to server Hi all, I am writing a integration test for a client-server application. To simulate the production server setup, and to update the code, I ...
alpha_989's user avatar
  • 131
3 votes
2 answers
853 views

Jenkins pushing to branch overwrites commits made in interim

A while ago I had written about how commits were being merged (successfully) into our develop branch in Git, but would later go missing, with no evidence of the missing code other than all the ...
Alex's user avatar
  • 4,522
3 votes
1 answer
19k views

Jenkins shows "No changes in any of the builds."

Description Jenkins job was made and configured to build release branch which already existed and had changes on it before first build. Job also monitors for push on BitBucket and starts building if ...
Najdan Tomić's user avatar
3 votes
2 answers
11k views

Does Jenkins support cloning git submodules with "git@" (not "https") URLs?

Had some issues with Jenkins when trying to checkout a project with Git nested submodules. It failed with a permission error when cloning the submodules: hudson.plugins.git.GitException: Command "git ...
Philipp Claßen's user avatar
3 votes
1 answer
1k views

Setting up Jenkins and git-server on same server

I want to setup a Jenkins and git on the same server. What I am trying to do: I want Jenkins to be able deploy a folder to another server which runs IIS server (which is running .net). I don't have ...
Nishant sahu's user avatar
3 votes
1 answer
54 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 ...
Jesse Adelman's user avatar
3 votes
2 answers
5k views

Git Workflow with User Acceptance and Staging Environments

I'm trying to streamline/standardize a git workflow in my workplace. The current delopment process is as follows: Pull 'development' branch Write code and commit and push to 'development' branch ...
David's user avatar
  • 131
3 votes
1 answer
1k 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 ...
Haneef Ibn Ahmad's user avatar
3 votes
1 answer
240 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: ...
Mikael Dúi Bolinder's user avatar
3 votes
1 answer
303 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 ...
Scrambo's user avatar
  • 131
3 votes
1 answer
3k views

Run scripts which are stored in GitLab from Jenkins

I have configured Jenkins Build Jobs and Deployment Jobs from using Jenkins shell. But I put all the commands in Shell to execute. Can I store those commands in GitLab and execute from jenkins?
Janith's user avatar
  • 173
2 votes
1 answer
121 views

Git Files Encryption for Business

I am using git and have the following problem: In the company where I work you now want to protect the source code from theft. So if for some reason a developer lets the source code of a project go ...
Emanuel Bennici's user avatar
2 votes
4 answers
7k views

Is there a way to use a Jenkinsfile from a git-submodule in a multibranch pipeline?

Background: The nature of our project's source involves multiple long-living branches, each one has its own Jenkins job (manually created). Multibranch limitation: Unfortunately we do not use a ...
maze88's user avatar
  • 133
2 votes
1 answer
73 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 ...
genderbee's user avatar
  • 129
2 votes
2 answers
1k views

Git Release branching strategy for Continuous integration and deployment

We have tried multiple branching strategies to adopt CI/CD. Developers develop on the feature branch and then merging to master which get deployed to QA for testing and then master is deployed to ...
Zanky's user avatar
  • 21
2 votes
3 answers
2k views

What are the best practices of merging dev to master?

We have 2 branches (master/dev) + some feature branches and 2 environments (production/dev). Our team is a very small people. What are the best practices of merging dev to master? Every morning? ...
sacherus's user avatar
  • 171
2 votes
2 answers
644 views

Gitworkflow and testing short lived feature branches in Openshift/Kubernetes

Recently my team started adapting git workflow for agile-based delivery, we've been using JIRA, TeamCity and various other CI tools to complete the pipeline. The workflow works great for monolith or ...
Sudheej's user avatar
  • 123
2 votes
1 answer
393 views

Pros and cons of different deploy strategies

I am not sure about the best way to deploy my program. Lets assume i have two relevant branches release(tested and ready to deploy code) and master. I have two options 1.Merge the release to master ...
Alexander Gorelik's user avatar
2 votes
1 answer
1k 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. ...
TacB0sS's user avatar
  • 123
2 votes
1 answer
844 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 ...
seventyeightist's user avatar
2 votes
1 answer
301 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 ...
Alex Ball's user avatar
2 votes
1 answer
416 views

Github rest api post label gives error for array input

We are hosting GitHub enterprise for our development. I am able to access the reset api and create jira, create PR etc. When I try to add label to my PR, it gives error for array. curl -X POST -u ...
Nilesh's user avatar
  • 193
2 votes
2 answers
214 views

Merging Git Database Commits from One Branch to Another without Cherrypicking

We have main two Git branches at our company: During our Sprint, Everyone has (local branches) Release branch: Contains prepared/developed code, ready for testing, and Master branch: Production- ...
SkyPool392's user avatar
2 votes
2 answers
85 views

Automatic production deployment for a Node.js app on RHEL 7?

I am looking for some way to have a maximally simple(no Jenkins or anything like that) automatic production deployment for a Node.js application on a RHEL 7 system. The caveat is: At the organization ...
Megakoresh's user avatar
2 votes
2 answers
85 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 ...
Atif Hassan's user avatar
2 votes
2 answers
1k 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 ...
MarcoCodo's user avatar
2 votes
1 answer
50 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 ...
Ahmed Hamad's user avatar
2 votes
1 answer
168 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 ...
CathalMF's user avatar
  • 121
2 votes
1 answer
1k 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, ...
Akshay Kapoor's user avatar
2 votes
1 answer
667 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 ...
Eriawan Kusumawardhono's user avatar
2 votes
2 answers
920 views

Migrating from TFVS to GIT using GIT-TFS

We have a large TFS repository which we would like to migrate to git. We are considering using git-tfs for a while, in order for everything to continue working while we migrate. We have large (or ...
Gulzar's user avatar
  • 121
2 votes
1 answer
312 views

Commit messages from Submodules to Jenkins Change Log

I have a project with 3 submodules that are updated whenever that project is built and the project is built mainly for an installer (which is not in a submodule). Not a lot of changes are made in the ...
Paul_LayLow's user avatar
2 votes
1 answer
501 views

VSTS Azure for DevOps: Unit test checking mechanism on pull request

Is there a way in VSTS Azure for DevOps to implement unit test checking mechanism on pull request. The condition is to only allow commits that change something in the unittest folder for example. ...
Daniel Johns's user avatar
2 votes
1 answer
60 views

How to configure a pull request quorum making an organizational constraint?

Consider the following situation. Alice and Anna, Bob and Bart, and finally Eve and Evelyn work on same Git project in three different organizations. How can they configure a quorum for pull ...
Ta Mu's user avatar
  • 6,802
2 votes
1 answer
86 views

Git Repository Manager conditionally deny pull request

I am looking to migrate a handful of Subversion repositories to Git. Each of these repositories has a development and production branch. When ready to release, a developer will submit a pull request ...
Preston Martin's user avatar
  • 3,218