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

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.

1
vote
1answer
21 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?
0
votes
1answer
33 views

Push specific changes (defect fix) and not feature changes

I am new to DevOps. I am using Jenkins and GitHub for salesforce deployment. Setup We have a develop branch. Feature branches are created out of it. When merged to develop, the deployment to the ...
0
votes
0answers
6 views

Appropriate use cases for git submodule and braid

For what use cases are git submodules (or subtrees) better suited than braid and vice-versa?
1
vote
1answer
23 views

Where is the git submodule revision actually stored?

I understand how to use git submodule to reference a specific commit in another repo, but where is that reference actually stored? It doesn't seem to be in .gitmodules as plain text?
1
vote
1answer
22 views

How to use Jenkins github user credentials to access github api in my script?

I have a Jenkins job foo that works perfectly well. It is authenticated with jenkins_foo_user. It is able to clone the repo and checkout the right branch. In my codebase, I have another script - ...
2
votes
0answers
21 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 ...
0
votes
2answers
15 views

How to make one branch public while the others remain private on GitLab?

I am currently working on a LaTeX template. I chose gitlab to host the template. Now I want to give some colleagues access to my template, but only to the master branch. I use the other branches to ...
4
votes
3answers
99 views

Tips for separating DevOps Git repos?

We currently have a Git repo with automation code (with tests), iaas-code and lamba-code. The automation code is mostly Fabric, Python and unittests. The Iaas-code is mostly CloudFormation, Docker-...
1
vote
0answers
17 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 ...
0
votes
0answers
14 views

How to FTP Directly from 3rdPartyHostingServer to ClountStack like GitLab, GitHub, AWS,etc?

I am working on a Web App. I am facing an issue with DevOps environment and looking for a solution for the same. My local machine is Win10 machine. I have my code on a 3rdParty Hosting Server(e.g ...
3
votes
1answer
92 views

What's the practice to perform a releasing with Git?

I'm using GitLab CE with Maven project, and try to follow the Environment branches with GitLab flow and The 11 Rules of GitLab Flow The step for releasing is as the following: - feature +--- +-...
0
votes
0answers
43 views

Chef git private repo using username/password

I am wanting to clone a git repo using the git resource in Chef but instead of SSH like everywhere seems to show I want to use just username/password. The security of the repo is not important but don'...
0
votes
0answers
31 views

Managing Cloud Formation Templates in SCM and S3 Buckets

I have multiple projects with a CFT stored in Git. However, these CFT files are too large (exceed Amazon's 51k byte limit) and have to be stored in S3. What is an effective method that would allow ...
0
votes
0answers
56 views

Source Control Layout

I'm starting to organize some of our custom VSTS tasks. I'm trying to follow the layout that Microsoft uses at Their GitHub Rpo. I also want to hook up CI/CD with this repo. My issue arises here. I ...
3
votes
1answer
52 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 ...
3
votes
2answers
82 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 ...
2
votes
1answer
237 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-...
2
votes
2answers
73 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
33 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 ...
1
vote
1answer
1k 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 ...
4
votes
1answer
141 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 ...
6
votes
3answers
147 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
57 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
99 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 ...
4
votes
4answers
277 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
59 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 ...
1
vote
0answers
32 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 ...
2
votes
2answers
244 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
253 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), ...
2
votes
2answers
2k 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
77 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
115 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
403 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 ...
6
votes
2answers
295 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
1k 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 ...
13
votes
3answers
3k 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
35 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
96 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 ...
2
votes
3answers
137 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
80 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
427 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
43 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
502 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
43 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 ...
7
votes
2answers
318 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
2k 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 ...
3
votes
1answer
510 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
647 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
461 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.