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
8
votes
3answers
210 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 ...
1
vote
1answer
188 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 ...
2
votes
1answer
303 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 ...
6
votes
4answers
1k 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)
1
vote
1answer
167 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 ...
3
votes
2answers
2k 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 ...
1
vote
1answer
528 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), ...
3
votes
2answers
8k 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
104 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 ...
3
votes
2answers
213 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 ...
3
votes
2answers
2k 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 ...
5
votes
2answers
1k 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 ...
5
votes
1answer
7k 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 ...
30
votes
5answers
16k 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
51 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 ...
2
votes
1answer
255 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 ...
4
votes
3answers
212 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
163 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 ...
2
votes
1answer
2k 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....
4
votes
2answers
113 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
45 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
2k 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
51 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 ...
11
votes
2answers
2k 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
6k 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 ...
5
votes
1answer
1k 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
652 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
991 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
375 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 ...
7
votes
2answers
2k views

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

When I checkout a specific commit hash, it goes to detached mode where HEAD POINTER can't point to a recent commit. What are the things we can do and what is the use of going detached head state in ...
-2
votes
1answer
95 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
2answers
5k 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' ...
7
votes
4answers
2k 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 ...
8
votes
1answer
739 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
76 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 ...
11
votes
4answers
3k 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
2k 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 ...
3
votes
1answer
822 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 ...
8
votes
3answers
2k 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 ...
4
votes
2answers
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 ...
1
vote
2answers
73 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....
4
votes
2answers
83 views

What are feasible quality criteria for Git repositories?

If you manage a lot of Git repositories (or other, but Git is a specific and common technology), it could happen that depending on users there will be quite different usage profiles. On the worst case ...
4
votes
3answers
9k views

Jenkins shows the job as failed if there is nothing to commit to gitlab

I have been using one Jenkins job, that will pull repository from gitlab. Then it will modify the files and push it into gitlab (only if any user added any new files/modify contents in gitlab). ...
3
votes
2answers
679 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 ...
4
votes
0answers
556 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 ...
5
votes
2answers
28k views

fatal: ambiguous argument 'master': unknown revision or path not in the working tree

when I modified one of my cookbook that I tried to add a cookbook dependency in berks file cookbook name, '=0.1.0', git: 'ssh://url:xxx/cookbook', tag: '0.0.1' and then tried to converge it which ...
10
votes
2answers
6k views

Git seems to recognize http.sslcainfo property from .gitconfig but ignores it on execution? SEC_E_UNTRUSTED_ROOT

all, I have a working certificates chain (testable with OpenSSL) but somehow I cannot manage to tell Git to load these certificates. I get the same "untrusted root authority" error (...
13
votes
3answers
267 views

How are you enforcing git behavior, including locally (particularly on Windows)?

I'm taking point on moving this .NET shop from svn to git, and have identified some ancillary issues I'd like to have a solution for before we flip the switch. The one I'm asking about in particular ...
10
votes
2answers
5k views

Git & Jenkins: get latest green commit on branch

We're just starting to push for CI-CD and as a baby step we're going to try updating a stack with the latest green develop once every couple of hours. I am fairly new to Git/Bitbucket, and can't ...
7
votes
1answer
1k views

Can GitHub's Pull Request model be used for implementing post approvals?

The accepted answer to "What are possible implementations (or examples) of the four-eyes principle?" suggests that GitHub's Pull Request model is a possible implementation. And my own answer to "How ...