Git is a distributed source control system.

learn more… | top users | synonyms

0
votes
1answer
23 views

How to make git forget my credentials

I am using GIT in windows. The repository stores my credentials and uses it for manipulating remote directory. For security reasons, I want to manually enter my credentials every time I do ...
0
votes
1answer
1k views

How can I enter a passphrase in command line using git?

I am using git in my development environment. When I run the command git pull origin master is there any way to pass the passphrase from the command line.
0
votes
0answers
18 views

GitLab Custom Hooks Not Executing

I have GitLab CE 8.9.0 running on a local server but I'm having trouble with the custom hooks not running. There's no lack of questions here with similar issues, however the large majority appear to ...
0
votes
0answers
28 views

gitlab asks password when cloning with ssh

I'm very desperate at this point, spend way to much time on this. I have a gitlab running on digital ocean with the one click install. Everything runs great.. I can clone a repo with ssh on my laptop ...
0
votes
0answers
11 views

How did I get the git commits to show up in autocomplete? [migrated]

Git tab completion on my mac Git tab completion on my ubuntu server On my mac and my Ubuntu server I get very different output from tab completion despite having the same version of zsh, same ...
25
votes
3answers
9k views

How to retrieve the last modification date of all files in a git repository

I know how to retrieve the last modification date of a single file in a git repository: git log -1 --format="%ad" -- path/to/file Is there a simple and efficient way to do the same for all the ...
0
votes
1answer
2k views

php fopen error (failed to open stream: Permission denied)

I have a php script on a Windows Server 2008 box (IIS 7) that is run periodically to download a remote XML file and store it on the server. This script (which previously used to run successfully), is ...
0
votes
1answer
1k views

Solaris 10 opencsw git package issue with bitbucket git hosting

Has anyone tried using `git' from opencsw package in order to work with bitbucket source hosting service (under solaris10)? I tried to use git as the bitbucket documentation explains, and - under ...
8
votes
1answer
4k views

git on HTTP with gitolite and nginx

I am trying to setup a server where my git repo would be accessible with HTTP(S). I am using gitolite and nginx (and gitlab for web interface but I doubt it makes any difference). I have searched ...
0
votes
2answers
998 views

gitolite post commit hook to update redmine's repository

I currently have a ubuntu server machine which has gitolite and redmine installed. Redmine accesses repository copies which are updated using a cron task. Having a cron task to pull the updates seems ...
4
votes
1answer
1k views

Git clone from Windows to Windows cannot find the repository

git clone gituser@<server>:myRepo.git doesn't work, fails with the error message: fatal: ''myRepo.git'' does not appear to be a git repository Background: We have a Windows 7 machine set up ...
0
votes
1answer
23 views

Forward incoming SSH connection if user = git?

I have a CentOS 7 minimal with Firewalld installed and it serves as the firewall / router for the company. Inside the network, we have a git server, let's name it: gitlab-server. I wish to make it ...
59
votes
4answers
32k views

How do I edit git's history to correct an incorrect email address/name [closed]

When I started using git I just did a git init and started calling add and commit. Now I am starting to pay attention and I can see that my commits are showing up as cowens@localmachine, rather than ...
7
votes
5answers
3k views

Is it possible to use etckeeper with a single shared git repository?

I noticed that several people have recommended using etckeeper to apply version control to my /etc directory. It appears to me that the default install puts a repository on the same machine as the /...
51
votes
7answers
22k views

Non interactive git clone (ssh fingerprint prompt) [duplicate]

I want to clone a repo in a non-interactive way. When cloning, git asks to confirm host's fingerprint: The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established. RSA key ...
-1
votes
1answer
35 views

Make SSH server to forward connection per user

Is there any way to force OpenSSH (or create a proxy of some kind) to forward one user to one machine and another user to another machine just by the username that he (or she) provided? I've got ...
0
votes
1answer
9 views

Can cgi scripts with permission 775 run under suEXEC?

We have suEXEC installed, and we also use git version control. suEXEC only allows cgi scripts to run with permission 755. Git sets file permissions on cgi scripts (and all executables) to 775. Is ...
1
vote
2answers
52 views

Gitlab post-receive hook Host key verification failed

I'm having 3 servers: werkstation.example.com -> server where the gitlab repository is cloned & for changing the files fom the repository git.example.com -> gitab server with repository "tomcat" ...
1
vote
1answer
1k views

Running jenkins as a different user

I followed http://blog.manula.org/2013/03/running-jenkins-under-different-user-in.html to run Jenkins under my own user account, because its default system user doesn't have permission to clone from ...
206
votes
10answers
103k views

How to tell which local branch is tracking which remote branch in Git?

I would like to know if there's a way to tell which local branch is tracking which remote branch in Git. I'm using one remote server, which is named "origin".
0
votes
0answers
17 views

Which user runs the post-receive git hook in Gitlab?

Which user runs the post-receive git hook in Gitlab? Directory: /var/opt/gitlab/git-data/repositories/MYGROUP/MYREPO.git/custom_hooks/post-receive
0
votes
1answer
26 views

Gitlab (7.10.1) sidekiq not starting

Gitlab is not starting anymore. It was working properly for more then 6 months, but now service gitlab start ends with: Waited 30s for the processes to write their pids, something probably went ...
301
votes
23answers
430k views

How do I tell Git for Windows where to find my private RSA key?

My GIT setup runs fine in Linux, but when I try to set things up under Windows (using Git for Windows and TortoiseGit), I don't know where to put my private ssh key (or, better still, how to tell ssh ...
2
votes
2answers
954 views

Ansible with Github: Permission denied (Publickey)

I'm trying to understand the GitHub ssh configuration with Ansible (I'm working on the Ansible: Up & Running book). I'm running into two issues. Permission denied (publickey) - When I first ran ...
0
votes
0answers
122 views

SSH over WAN through reverse proxy to LAN git server

We have an URL to our external IP to our gateway that connects to a CentOS nginx reverse proxy behind which sits our CentOS6 Gitlab server on the company LAN Through this we currently have http ...
9
votes
1answer
5k views

Gitlab backup file location (Omnibus installation)

I have installed Gitlab using omnibus installation package. I took a backup using below command sudo gitlab-rake gitlab:backup:create Backup was successfully created. But I want to know the ...
0
votes
0answers
8 views

Check files since latest git fetch/git pull

When command git fetch --tags --progress ssh://mygit/repos/repo.git +refs/heads/*:refs/remotes/origin/* is done, there is a following output detected: remote: Counting objects: 21, done. remote: ...
3
votes
4answers
8k views

File permissions issue on OS X El Capitan and SMB share

Since we upgraded to OSX El Capitan we experienced some strange file permissions errors with our SMB server. We have a ubuntu server machine hosting our working files over a SMB shared folder to each ...
11
votes
6answers
16k views

Yum doesn't install latest version of Git on Centos6

When I go to Gits download section it mentions that latest version is 1.8 and I can install it by yum install git on Fedora. I'm running CentOS6 so that command should also work for me, but yum tells ...
0
votes
1answer
36 views

Impossible configuration in gitolite?

I am banging my head on a wall with this one and getting nowhere. I hope that someone here has a clue or just confirm my impression that it's impossible to do. I am using gitolite 2.3 on an internal ...
0
votes
2answers
50 views

How to work with a single git repo on 2 servers: production and testing?

We have a single git repository on a test server (let's call it test1). The repository is very simple, just master no branches or anything fancy. The goal of this repo is to track changes to /etc/...
4
votes
1answer
613 views

Elastic beanstalk access private git repo

I am trying to currently add an ssh key to my elastic beanstalk instances using .ebextensions commands. The keys I have stored are in my application code and I try to copy them to the root .ssh ...
0
votes
0answers
15 views

How do you git archive a branch using gzip with highest compression level?

I'm trying to git archive a branch using gzip with the highest level compression (9) but it seems to not compress at that level. Here is my command: git -C /home/user/example.com/ archive --format ...
0
votes
1answer
102 views

Jenkins/GitLab: How to automatically build the latest git tag?

I want to build the latest git tag in a Jenkins pushed to a git (GitLab) repository. A web hook for tag pushes is configured and working. My current try is to setup a parametrized Jenkins job, so it ...
0
votes
0answers
22 views

GIT-WEB ERROR: “404 - No projects found error”

"404 - No projects found error" is coming when start to browse. I added my error page http://postimg.org/image/r0pa74ynl/ When i access git server through cmd line i could clone as below [tom@...
0
votes
0answers
16 views

subgit commit git -> svn also commits tip (trunk/)

Moving our VCS in-house and migrating from svn to git. Have set up GitLab CE and subgit (whilst migrating all users over to git). All seems to be working fine (including authors translation) however ...
1
vote
0answers
347 views

Debian/Apache - Set up a git server + gitweb without virtualhost

I'm struggling to set up a clean and working git server with gitweb without virtualhost. Software Debian 8 Apache 2.4 Initial setup mod userdir activated Apache DocumentRoot is /home/user/...
0
votes
1answer
61 views

Debian 8 GitWeb page shows source-code [closed]

Recently I have started to set-up my own WebServer after buying a domain and planning to host my portfolio on it. But before that I needed a way to display anything at all on my domain, so first thing ...
1
vote
1answer
1k views

Installing GitBlit GO as Service in Ubuntu Server 14.04

I downloaded it (version 1.6.0), unpacked it in /opt/gitblit (ubuntu server 14.04.1), configured http to 8280 and disabled https assigning 0 (I expose it by https using nginx). I created gitblit user ...
0
votes
0answers
19 views

Forbidden return on gitweb Subdomain

My website (https://brentdijsselbloem.nl) has a subdomain: "git"(http://git.brentdijsselbloem.nl) to host my git repositories for my project group. One of the assignments is that I need to write a ...
1
vote
1answer
32 views

Deploy app by triggering `git pull` after commit

I have a git repo on a remote server (my own). I want to make sure that after a git push onto that remote server, a new instance of the node program is pulled in the local development server (then, ...
0
votes
2answers
51 views

ansible git pull without storing the password on the server

When simply using the command line, the main strategy would be to use the cache git credential helper: git config --global credential.helper cache git config --global credential.username {{ gituser }}...
1
vote
0answers
13 views

How to Configure Gerrit for Git over HTTP

I've setup Gerrit on Ubuntu Server 14.04. Everything seems to be running correctly and I have users using LDAP to authenticate to the web interface and we've been pulling and pushing commits. I'm not ...
5
votes
5answers
6k views

Running git pull from a php script

I was trying the Perfect Workflow, with Git, GitHub, and SSH, but it seems i can't run git pull. I've tried git status and it's fine. When i git pull 2>&1 i get: error: cannot open .git/...
0
votes
0answers
16 views

Change location of BitBucket Application logs

How to change the location of BitBucket Application logs,As by default its created under atlassian-bitbucket/WEB-INF/classes/logback.xml: <file>${**log.dir}/atlassian-bitbucket.log**</file&...
0
votes
0answers
75 views

GitLab on CentOS 7 (not sending email) after applying recommendations

GitLab not sending mails and GitLab email notifications not sending have been attempted with no success. I have an GIT with GitLab as a web management setup. However, invitation/confirmation ...
-2
votes
1answer
32 views

Write-only git repository?

I have a situation where it would be really useful to have a "dropbox" git repository. That is, a repo that can be pushed to but not cloned or pulled from. None of the git server solutions that I have ...
141
votes
8answers
161k views

How do I share a Git repository with multiple users on a machine?

I have a Git repository on a staging server which multiple developers need to be able to pull to. git-init seems to have a flag very close to what I'm looking for: --shared, except I'd like multiple ...
0
votes
0answers
30 views

Git GUI on Windows not seeing .git folder from Samba share

THE SCENARIO I am using Vagrant,Windows environment and running Ubuntu inside the virtual box for my development work. I have setup an instance of Samba server and I run the I access the virtual ...