Questions tagged [git]

Git is a distributed source control system.

Git is a source control system that allows for many people to work on the same project simultaneously. It is distributed, makes it possible for many different branches of the same project to co-exist at the same time, and offers many other advanced features.

Git was originally authored by Linus Torvalds, the creator of the Linux kernel, and the official Git homepage is at git-scm.com

For git quick guide, see gitready.com. More information, see wikipedia

1127 questions
4
votes
1 answer

"git init" via "gio mount" on samba: fatal: could not set 'core.filemode' to 'false'

I want to push my repository to a Samba share mounted via GNOME's Nautilus. I believe it uses gio mount under the hood. However, when I try to run git init in a mounted Samba share, I get the following error: error: chmod on…
ivarec
  • 151
  • 5
4
votes
1 answer

Jenkins occasionally fails to clone/fetch

I am running code hosted on Gitlab on regular basis in Jenkins. From time to time, Jenkins GIT plugin failes to fetch the remote repository. It works fine when I just run it again. Any idea? I have notifications for failed builds and it drives me…
Blaskovic
  • 181
  • 1
  • 5
4
votes
1 answer

`git pull` destroys git repository and truncates files

I put work files in Git repositories and sync between computers/laptops using an external SSD. So for example if I want to sync repo1 from my PC to my laptop, these are the steps that are done: plug and mount external SSD on PC on PC: cd…
4
votes
3 answers

Trigger Jenkins job from Bitbucket Pull Request

There are various ways to trigger a Jenkins job from an SCM like Bitbucket, but what I want to do specifically is trigger a build using the branch that is the source of the Pull Request. Up to now, we have used the Bitbucket Pull Request Builder,…
Garreth McDaid
  • 3,449
  • 1
  • 27
  • 42
4
votes
2 answers

Jenkins github pull request builder picks wrong commit

I am using Jenkins with the plugin GitHub Pull Request Builder. I then have set up webhooks from GitHub to trigger a build in jenkins when a new Pull Request is opened or committed to. I configured the GHPRB plugin with the Jenkins DSL: job("name")…
benedikt
  • 95
  • 2
  • 7
4
votes
2 answers

r10k: proper merging workflow with git

I am currently running Puppet with in masterless mode. I am using r10k for module and environment deployment. Simplified version: The r10k control repository has two branches: testing and production. Changes in production will be automatically…
M. Glatki
  • 1,964
  • 1
  • 17
  • 33
4
votes
1 answer

Ansible git clone from private repo in Stash

For the life of me I can not figure out why I can not clone a private repo from Stash. Think I have tried: 1) Create 'ansible.cfg' with [ssh_connection] ssh_args = -o ForwardAgent=yes On my project directory. Keys works fine on host as I can…
Mazzi
  • 141
  • 4
4
votes
0 answers

Git Pull on CGI and Command Line have different results

I have an "after push" webhook on GitHub that calls a CGI script to update a Jekyll website. The script: user@server [~/_repo]# cat cgi-bin/githook.cgi #!/bin/bash echo Content-type: text/plain echo if [ -z "$HOME" ] ;…
yakatz
  • 1,213
  • 4
  • 12
  • 35
4
votes
1 answer

Jenkins pulling from Bonobo Git Server

I have installed Jenkins Git plugin for SCM on Jenkins Bonobo Git Server To configure Jenkins to build from Git I type in url, which is on my local network http://devserv/Bonobo.Git.Server/.git, then i precede to type in username and…
Bjørn
  • 276
  • 2
  • 6
  • 10
4
votes
1 answer

Using sudo in a Git hook to set permissions after deploy

I run a few sites on Ubuntu and I'm setting up a new deploy worflow as follows (the example uses the staging environment): On my dev machine, I do git push staging which pushes to a bare repository and triggers the post-receive hook, which do these…
Schrute
  • 181
  • 1
  • 3
4
votes
1 answer

Using npm install as a MS-Windows system account

I have a node application running on Windows, which I want to be able to update automatically. When I run npm install -d as the Administrator account - it works fine, but when I try to run it through my automation software (that is running as local…
Guss
  • 2,670
  • 5
  • 34
  • 59
4
votes
1 answer

How to run git as daemon on Solaris (SmartOS)

As stated in subject. I have this script that works fine from command line: #!/sbin/sh GITCOMMAND="git daemon --base-path=/my/git/repo --export-all --enable=receive-pack --reuseaddr" startcmd () { `$GITCOMMAND` } stopcmd () { pkill -f…
Alex
  • 171
  • 6
4
votes
1 answer

Change ssh ControlPath with host-specific declaration

I have a situation where I need to access the same SSH host (GitHub) with two different SSH keys. This is no problem and I can set it up easily by aliasing the hostname. The problem comes when this configuration is combined with my SSH…
petrsnd
  • 168
  • 1
  • 7
4
votes
1 answer

Verifying Salt states before committing

I'm storing my salt sls files in a git repository, but I have the perennial problem that I can't verify my YAML represents a valid set of states that could be applied (I've also had difficulty validating my YAML -- that's much easier, though). …
Andrew Aylett
  • 599
  • 3
  • 14
4
votes
3 answers

Using git to deploy

Is there a way to deploy/deliver a git branch to different servers via SSH by using git ? Without setting up a git server, using services like github or connecting to the remote servers and pulling from the main server. I need something similar to…
inselberg
  • 165
  • 4