Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

learn more… | top users | synonyms

0
votes
0answers
17 views

ssh connection to gitlab fails behind home router, but https works most of the time

I am trying to connect to my repository on gitlab.com. It used to work on my laptop both when I was at home and when I was at work. I was using ssh and had added the ssh keys to gitlab. Suddenly ...
1
vote
0answers
10 views

Dealing with git permission errors on root mounted partition

I am trying to clone a git repository from my home directory to a cifs partition, but I keep getting this file permission error. [cguest@devserver groupmount]$ pwd /mnt/groupmount [cguest@devserver ...
0
votes
0answers
12 views

virtualbox - existing folder in ubuntu as shared folder

I have some existing directory in virtualbox running ubuntu, and would like to make this folder a shared folder in virtualbox, so that the host OS, will see it. The end goal is to use git in the host ...
-1
votes
0answers
19 views

Terminal Initializes in a Master Branch

When I open iterm my initial prompt has the following: calebfristoe at Calebs-iMac in ~ on master* No idea why. I deleted the cache in Brackets text editor from the command line and that's last ...
1
vote
0answers
25 views

Restrict SSH access to git usage only

Using: ssh-keygen -O force-command="/bin/restricted-command", or command="/bin/restricted-command" at the beginning of an authorized_keys line one can force a key-based SSH connection to execute ...
2
votes
0answers
13 views

Get git branch from several folders/repos

I have a folder with several repositories inside. Is there any way I can run git branch or whatever git command inside each folder? $ ls project1 project2 project3 ...
1
vote
0answers
120 views

Can't connect to a server via SSH (with my PC only)

For some days I'm experiencing issues with SSH on my machine (I guess after having installed some softs that I don't remember... (sic)) It's very problematic as I use Git to work on some code ...
2
votes
1answer
27 views

Strange characters in GIT completion

I'm running bash GNU bash, version 4.3.25(1)-release (x86_64-apple-darwin13.4.0) on OS X 10.10.1. A week or so ago I've noticed that autocompletion has stopped working, but only for git. I'm ...
1
vote
1answer
36 views

Broken git autocompletion after I have overridden the git command

Recently git branch <tab> started showing me the following error: $ git branch bash: -c: line 0: syntax error near unexpected token `(' bash: -c: line 0: `/usr/bin/git --git-dir=.git ...
1
vote
2answers
10 views

Providing access permissions to 2 git repositories inside single git instance

I have two git repositories in one single git instance and need one set of users to access one repository and another set of users to access second repository. How can I create a group, and add users ...
0
votes
1answer
19 views

Why is .gitattributes applied only to files added to repo after defining it?

In my repos I'm implementing a new interesting strategy to preserve some versioned files from merges, that makes use of custom merge drivers and .gitattributes. Please take a look: ...
0
votes
1answer
47 views

How to exit a git merge asking for commit message?

I'm new to git. I did a normal merge, but it keeps asking this: # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic ...
2
votes
1answer
34 views

how to change git path?

So I just installed the latest git, with the official mac installer. I'm on Mavericks. Sadly, git --version is still git version 1.9.3 (Apple Git-50) and which git gives me: /usr/bin/git ...
0
votes
0answers
16 views

Does git concern about git repositories in git repositories? [migrated]

How does git handle a pure git repository in another git repository? /prjA /prjA/.git /prjA/prjB /prjA/prjB/.git Is /prjA/prjB/.git stored as all other files in prjA, or can git optimize it to save ...
1
vote
1answer
52 views

Can ssh (agent) work with two separate identities? [duplicate]

I use an Ubuntu 14.10 distribution, and two private keys, one encrypted (~/.ssh/E.key), and one not encrypted (~/.ssh/NE.key), which I use for accessing two github repositories, respectively, repoE ...
1
vote
4answers
44 views

etckeeper with git, a way to deal with huge repo

I recently discovered that /etc/.git/ reached about 30G [sic!] of disk space. This repo is only for etckeeper. I have small experience with git. I came up with two solutions: Obvious one, delete ...
2
votes
2answers
53 views

Editing Remote Files in Git repo

I have a remote Linux machine which I use as a development server for a web application. I cannot reproduce the environment locally, the files must execute on the remote server, but I want to edit ...
0
votes
1answer
16 views

How to make Logwatch track git commits

I have a webserver with a git repo containing a website. I have made a CMS using PHP where PHP automatically commits to git when files are changed. I would like to track these commits (preferably in a ...
2
votes
1answer
71 views

What's the difference between `git reset file` and `git reset HEAD file`?

I find both of these can unstage a file. I used to use git reset file to unstage a file. But today when I read the http://git-scm.com/book. I find it taught me to use git reset HEAD file, what ...
1
vote
2answers
45 views

Safe way of letting users upload their public keys

I need to let untrusted users, strangers, upload their id_rsa.pub to my server and onto a given user's authorized_keys (user git in my case). What is the safest way of achieving that, without having ...
0
votes
0answers
24 views

Git, puppet `file` type and symlinks

I'm working on merging two puppetmasters into one. Configurations for each are kept in its own git repository. puppetmaster1 must go, and all the hosts must be handled by puppetmaster2. In ...
1
vote
1answer
37 views

Is there a way using a bash script to get the location of changes made in last git commit?

I need to check the location of the files, which were changed in the last commit. Because I will have to do this on Jenkins, this should be done using a bash script. This is the output of git ...
3
votes
1answer
156 views

Rsync folder while --exclude-from'ing .gitignore files at different depths

So I'm trying to work on a command to rsync a source folder with a structure like so: - app.js - .gitignore - src/ - src/logs/ - src/logs/.gitignore The first .gitignore would have a series of ...
1
vote
1answer
126 views

what does “ gbp:error: upstream/1.5.13 is not a valid treeish” mean?

I want to build a debian package with git build package.(gbp) I passed all steps, and at least, when I entered gbp buildpackage, This error appeared. what does it mean? and what should I do? ...
0
votes
0answers
159 views

Fedora 20: Can't install git

[root@8440p Downloads]# yum clean all Loaded plugins: langpacks Cleaning repos: rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree : rpmfusion-nonfree-updates updates Cleaning up ...
1
vote
0answers
37 views

Problem with Bitnami Gitlab

I have installed Bitnami Gitlab on a centos 6.5, but I just see the error written below while trying to push to another project: ~/sample$ git push -u origin master git@-'s password: fatal: ...
1
vote
2answers
56 views

fatal: Reference has invalid format: 'refs/stash (1)'

I have recently upgraded from ubuntu 14.04 to 14.10 using apt-get dist-upgrade, which seems to have gone smoothly, except that I can no longer use one of my git repositories (on which I had local ...
0
votes
1answer
40 views

What's the difference between `Commit hash`, `Parent Hash` and `Tree hash` in git?

Today I'm learning some basic git knowledge via reading this doc online: http://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-Hi And at that chapter, I'm start to learn using git log ...
2
votes
1answer
79 views

Does `git archive` use the wrong file timestamp?

It seems git archive creates a tarball with wrong file modification timestamps, resulting in tar complaining when unpacking: $ cd repository $ git archive -o repository.tar.gz master . $ find ...
2
votes
1answer
102 views

In a Virtualbox VM how do I set the filesystem permissions?

I have a virtualbox VM with arch Linux running on my windows PC (which I unfortunately have to use for work). I use this to work on my windows PC with a Linux environment as an alternative to Cygwin. ...
3
votes
1answer
127 views

How to create a deterministic tar.gz using git-archive?

Creating a git repository for testing. ~ $ mkdir somefolder ~ $ cd somefolder/ ~/somefolder $ git init Initialized empty Git repository in /home/user/somefolder/.git/ ~/somefolder $ echo test > ...
19
votes
3answers
242 views

How did the Linux Kernel project track bugs in the Early Days?

We all know that Linus Torvalds created Git because of issues with Bitkeeper. What is not known (at least to me) is, how were issues/tickets/bugs tracked up until then? I tried but didn't get anything ...
0
votes
1answer
27 views

Downloading code with git

I am new to git and want to download some code from GitHub, for which I have a URL: https://github.com/PointCloudLibrary/pcl/tree/master/doc/tutorials/content/sources/qt_visualizer I have installed ...
0
votes
1answer
102 views

Opensuse 11.1 package manager outdated

I'm trying to update GIT to the latest version. The package manager for opensuse 11.1 only has up to git 1.6.0.2. I'm updating using zypper: sudo zypper install git And I get the following ...
2
votes
1answer
223 views

Is there a way to prevent git from changing permissions and ownership on pull?

Everytime I do git pull or git reset, git resets changes to permissions and ownership I made. See for yourself: #!/usr/bin/env bash rm -rf 1 2 mkdir 1 cd 1 git init echo 1 > 1 && git add ...
0
votes
1answer
49 views

Recommended file system for cloning AUR-mirror?

I'm beginning to use Arch Linux and wanted to explore the AUR repository. Because of this motivation, I learned two things immediately. Ext3 can support only 32000 sub-directories. (I ran into ...
1
vote
0answers
44 views

Gbrowse not working correctly on MAC

I'm using vim and have installed Pathogen and vim-fugative, but when editing a file under source control on github.com I use the command :Gbrowse and nothing happens. I've tried most of the advice I ...
2
votes
1answer
29 views

Repository for Family Pictures [closed]

I have a Debian computer and a MacBook Air. On Debian I created a repository: mkdir -p /repository/git/2014.git cd /repository/git/2014.git git init --bare --shared On the MacBook I then typed: cd ...
2
votes
2answers
92 views

Cron job not behaving as expected

So I have a python script that pulls down git/svn/p4 repositories and does some writing to a database. I'm simply trying to automate the running of this script and based from what I see in syslog it ...
0
votes
2answers
79 views

Compilation error when building a custom kernel

I'm trying to build a custom kernel from a git repository on my Ubuntu virtual machine. I run the make command as follows : sudo apt-get install vim libncurses5-dev gcc make git exuberant-ctags mkdir ...
2
votes
0answers
25 views

git report moved lines

I want to track the number of additions and deletions that exclude moved lines. So if a commit has 10 additions, 5 deletions, and 3 moved lines, then I have 7 additions, 2 deletions excluding moved ...
1
vote
1answer
270 views

How does Git change the shell prompt in Aptana Studio's Cygwin Terminal?

I'm running Aptana studio 3.3.2. The command echo $SHELL outputs /bin/sh. However there is no value for the PS1 environment variable which I would like to inspect. I cannot there is no .bash_profile ...
1
vote
0answers
456 views

GIT on 'mountain lion' will not execute commands

Macbookpro Mountion Lion 10.8.5 I am not new to technology or programming but relatively new to Web Development. My Unix is rusty. Issue. I cannot get GIT to execute commands. I have been ...
1
vote
1answer
63 views

How to check if SSH compression is enabled?

I am experiencing severe slowdown in Git checkouts from VM. I've been told that one of the reasons may be SSH compression (either enabled or disabled). How to check that is the state of compression ...
0
votes
1answer
122 views

Is it possible to set the users .gitconfig (for git config --global) dynamically?

I have the problem, that we login to the systems as our own users johndoe and then have to do a sudo su - root to be able to do administrative tasks. We have the system config files in a git ...
3
votes
0answers
106 views

Restricting access to just CVS and Git commands

At work we have a server which hosts our CVS repository and in order to restrict shell access to this system, I have deployed rssh which has worked well for a number of years. We are now converting ...
5
votes
1answer
770 views

Determine if Git working directory is clean from a script

I have a script which runs rsync with a Git working directory as destination. I want the script to have different behavior depending on if the working directory is clean (no changes to commit), or ...
4
votes
2answers
611 views

How to modify a PKGBUILD which uses git sources to pull only a shallow clone?

The other day I tried installing opencv-git from the AUR with makepkg on Arch Linux. Of course it pulls from the git repository as the name indicates. This pulls 1Gb. I am reading about making a ...
2
votes
1answer
188 views

Git pull in a linux environment changes the owner of the files

I am not sure if this is the proper forum to ask the question, but here it goes: Why will everytime I execute a git pull on my live server, the owner of the files be changed? I keep on manually doing ...
7
votes
3answers
803 views

Git pager is less, but what is causing the output coloring?

less itself isn't capable of doing syntax highlighting, according to this thread. However, git diff nicely shows colored output in less, its default pager. When I redirect the output of git diff ...