Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

0
votes
0answers
8 views

When to get rid of '-SNAPSHOT'

I'm working on a Git workflow (not git-flow) for a Java project that uses Maven and Artifactory for artifact storage. On develop and feature/* branches the version number contains '-SNAPSHOT'. It is ...
-1
votes
0answers
19 views

Checkout code using jenkins pipeline and build that on any available nodes/agents

I am trying to checkout the code at a particular location ( ex. C:/scm/ ) on windows using jenkins pipeline (jenkinsfile) and want to execute the build from the checkout location ( C:/scm/ ) in any ...
2
votes
2answers
65 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 ...
1
vote
0answers
59 views

jenkins fatal: ambiguous argument, unknown revision or path not in the working tree

In jenkins pipeline, execute git command : git log --format=%B --no-merges origin/master..origin/${currentBranch} jenkins output error : fatal: ambiguous argument 'origin/master..origin/XOPS-...
1
vote
2answers
38 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- ...
1
vote
1answer
26 views

Git repo setup for multiple dot net project

I have a dot net solution containing a WPF application, MS-SQL database, and 2 dlls. Each is their own product in the sense that each can be shipped independently (dlls go to nuget to be consumed by ...
0
votes
1answer
184 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 ...
2
votes
1answer
42 views

Heroku Slack integration without using Github

Heroku has this great Slack chatbot (chatops) that lets you send messages if a deployment pipeline succeeded or failed. Unfortunately, while setting it up and logging in to Heroku, it asks for your ...
5
votes
3answers
121 views

What's a good devops approach for a single developer writing python web applications?

I'm guessing this question will seem incredibly trivial for some readers, but as someone who is a developer but with little experience of deploying apps in anything other than a manual, hit and hope ...
0
votes
1answer
31 views

Customizing deploy key and ssh wrapper path for git cloning through application_git cookbook

I am using Chef 12.0.3 for managing servers. Earlier I was using application cookbook for cloning repository. But now in higher version of application cookbook, this support is moved to new cookbook ...
1
vote
1answer
74 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 ...
3
votes
4answers
110 views

What do you need for a monorepo for a large codebase?

From certain size of the codebase, would you still have Git or are there more specialized solutions? (Also to checkout just a part of the codebase)
0
votes
1answer
35 views

Deploying a SaaS solution which is custom for every customer

So we have 5 repositories (Individual web services ex. CMS/E-commerce and internal APIs) which are currently deployed as Docker containers. What we plan to do is to use these services and make a ...
0
votes
0answers
19 views

Deb package versioning strategy with git and CI

We've decided to use debian packages for our internal software and I've been trying to wrap my head around the most efficient way to version our debian packages. My goal is to have a package built ...
1
vote
2answers
62 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 ...
0
votes
1answer
107 views

How should we organize VSTS repositories?

We are a small company with the following systems: External Web Site for pre-customers (already created in ASP.NET Framework), External Mobile Application for customers (in progress in Flutter), ...
1
vote
2answers
631 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 ...
2
votes
1answer
71 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 ...
4
votes
2answers
102 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 ...
1
vote
2answers
199 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 ...
4
votes
2answers
177 views

Coupling docker registry and source control

What are the best practices (if any) for coupling a docker image registry with a SCM service (such as bitbucket)? I know a docker registry can live in artifactory, but how can I assure that the two ...
3
votes
1answer
660 views

What git command could be used to check when a remote branch was created?

Git is used at work. The number of branches is growing and growing. The aim is to remove branches that are older than X weeks. Attempt 1 Running git branch -h will probably indicate what to run to ...
9
votes
3answers
1k views

Where to put ansible-vault password

We are planning to use ansible vault in our project to prevent leaking passwords or keys in git. The idea is to put all our sensitive data into a plain file then encrypt this file with ansible-vault ...
2
votes
1answer
32 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 ...
1
vote
1answer
64 views

Test coverage of changed code in pull requests in git-tfs

We have a lot of legacy code that have poor test coverage. We wish that all new code that is checked in through pull requests has (close to) full test coverage. What is the best approach or tools to ...
0
votes
3answers
93 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 ...
4
votes
2answers
75 views

Continuous Integration and Isolated Feature Testing

I've been given the task at work to move everyone from using TFS Source Control to Git as the Development Team has been lead to believe that Git may well be the silver bullet that will fix alot of the ...
1
vote
1answer
176 views

How to set a Git repository when creating a job in Jenkins from a Groovy script?

I'm trying to setup a Jenkins server with Groovy script: def repository = 'git@somerepo' import hudson.tasks.Shell; job = Jenkins.instance.createProject(FreeStyleProject, 'TestJob') job....
3
votes
2answers
42 views

If a piece of work requires manual testing/QA, do we need to wait until opening PR?

First question here (i'm usually on StackOverflow)...not sure if the right place (if not, please vote to move where it belongs). If we have a dev process using traditional GitFlow approach, what ...
4
votes
1answer
39 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 ...
5
votes
2answers
367 views

Validating certificates with get_url or yum on CentOS 7 using Ansible

I'm pretty new to Ansible, but it seemed a better tool than a bash script for installing programs from source on remote servers... Starting from my working-but-fragile bash script, I made an Ansible ...
0
votes
1answer
38 views

Multiple git profiles especialy with Atom

I have configured Git to use a specific CA certificate, but how can opt-out for it other than using the switch -c http.sslVerify=false? (or enforce other certificate which seems better in terms of ...
6
votes
2answers
205 views

how to automatically create a subdomain for every pull request

Background I got a team of untechnical QA's who have to do testing on iOS/android apps for every Pull Request (PR) that gets created by my backend team. Question This is what I want to do: ...
9
votes
1answer
1k views

How do I trigger scripts on a merge or when a branch is deleted?

I am using jenkins multibranch pipelines. If a branch is merged and deleted jenkins removes the branch from the pipeline as well. This is great, but I want to run a command/script when a branch is ...
2
votes
1answer
306 views

SVN Externals in Git

I have a handful of projects that utilize SVN externals. How should these externals be handled in Git? For reference, these externals are shared by multiple repositories and are updated very ...
3
votes
2answers
644 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 ...
4
votes
1answer
282 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.
3
votes
2answers
116 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 ...
6
votes
1answer
258 views

What is the exact use of DETACHED HEAD state in Git?

when i enter into git checkout commitid(specific commit id), it going to detached mode where HEAD POINTER can't point recent commit. What are the things we can do and what is the use of going detached ...
-1
votes
1answer
57 views

How can I see HEAD temp pointer reference in Git?

Not the current working HEAD REFERENCE which points in our current branch.
4
votes
3answers
1k views

How to “docker-compose build” a service from code located in local git repository?

I have a git repository placed in local file system at /home/nou/code/lib.git Also I have /home/nou/docker-compose.yaml that is used to deploy a service based on the code from the repo: version: '2' ...
6
votes
4answers
930 views

Ansible - private git repositories - SSH agent forwarding vs copying private SSH key

I recently started playing around with Ansible and it seems very nice. I don't have much experience in DevOps stuff and never really had to handle any complex scenarios. I started creating my Ansible ...
4
votes
1answer
122 views

How to ensure that git subtrees are kept up to date?

Problem: We use Data Transfer Objects (DTO) to ensure consistent interfaces across multiple services using TypeScript. We're currently using a git subtree in order to make sure that each ...
2
votes
2answers
64 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 ...
9
votes
4answers
665 views

How to structure DevOps related code and configs in a code repository?

We've been growing as a company, our products are expanding and our DevOps related activities and efforts are growing as well - we've switched from Bamboo to a more flexible and configurable Jenkins, ...
2
votes
2answers
691 views

Where should I store my build configuration files?

At my work we use git for our source control, MSBuild for our builds, and Jenkins for our CI. Our git repo will have different branches for the cycle of the product (develop, QA, release). My ...
2
votes
1answer
300 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 ...
6
votes
3answers
831 views

How to create staging servers for multiple git branches?

I have to create a new staging process for our development and testing. At any given time, there are only around 4 git branches actively being developed and tested. Within each git branch, there may ...
2
votes
3answers
274 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 ...
1
vote
1answer
36 views

How to automate control of synchronization between Maven artefact version and Git tag?

Given the following situation: in a POM file in the repo root (Atlassian BitBucket) I can define that this POM has e.g. the version 0.0.1-SNAPSHOT then I can tag the codebase whatever I want like v.0....