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
8 views

Hacking caja on mint

I'm trying to add a couple of changes to caja on Mint (MATE edition) and I'm trying to test them out, manually. Doing autogen.sh && make && sudo make install on the upstream version ...
0
votes
2answers
21 views

Git clone from Bitbucket

I am trying to git clone a repo off of bitbucket. I use git clone {https} temp. This gives me an error of refs not found. The https address is the one I get off of bitbucket, but the one they provide ...
3
votes
1answer
31 views

What is git revert --quit for?

From the git-revert(1) manpage it is not clear to me what the exact differences between the quit and abort options of the revert command are. From my exercises with the revert command I made the ...
0
votes
1answer
31 views

git Fatal: Out of memory, malloc failed on branch push

I know this has been asked a lot but I did not manage to get any solution to solve my problem. My coworker assigned me on a new project. The application is hosted on test Debian server with git ...
5
votes
1answer
114 views

How do I store colored text in a variable and print it with color later?

If I do git status --short, git lists files that are not tracked with two red question marks in front: I'm trying to store this in a variable and print it with color later. Here's my bash script: ...
1
vote
0answers
21 views

Why does git store my SSH identity in gnome, but not KDE?

I'm used to git only prompting me for my SSH passphrase the first time I need to authenticate to a server. On the system I'm currently on, this only works in a Gnome session. If I start a KDE ...
2
votes
0answers
28 views

File permissions when removing user from git

I have a shared git repository set up, which users pull from with the ssh protocol. I would like to set up the permissions in a way that only users in a specific user group (e.g. git_group) may ...
0
votes
2answers
25 views

use git to update my local copy with latest btrfs-progs

This is hopefully a very simple git question but I haven't been able to find the answer, most info about git assumes you want to upload and merge changes and my situation is much simpler than this. I ...
1
vote
1answer
33 views

Using git over sshfs on OSX

Due to a new job, I'm switching from working on Ubuntu 14.04 to OSX Yosemite. I mainly work in R, and I was using RStudio and git to manage my code on a server (Debian). To this I mounted the server ...
1
vote
0answers
41 views

Fetch patches from mailing list with mutt and vim

How can I fetch patches from a subscribed development mailinglist with mutt and vim so that they can be applied with "git am" or "git apply" command easily? Is it either possible to save it ...
2
votes
2answers
35 views

Git alias multi-commands with ; and &&

I want to have an alias that execute a command and then whether it fails or no it execute other commands that depends on the success of each other. So I have something like that in .gitconfig ...
1
vote
0answers
20 views

delete .gitignored files with rsync

I often need to use rsync to synchronize a local with a possible remote directory, while ignoring exactly all the files git would ignore because of its .gitignore configuration. To do so, I am ...
1
vote
1answer
41 views

Can't push git updates & run Unix commands when connecting via SSH

I have installed java 8 on my bluehost VPS. I have followed http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ instructions . In order to add directories to PATH variable I have added ...
3
votes
1answer
22 views

Find repository names from gitolite info output

How do I extract the names from the gitolite info command output, for further piping into a script? I'm writing a migration script to migrate all my repositories from gitolite to a Gitlab server. ...
2
votes
2answers
62 views

Get last commit message, author and hash using git ls-remote like command

I'm looking for a way to get three informations using git ls-remote like command. I would like to use it in a bash script running in a cron. Currently, if I do git ls-remote ...
0
votes
1answer
15 views

Deleted gitweb folder, don't know how to reinstall it

Since two days I'm struggling with making Gitweb work on my home server machine. I've modified so many configuration files till now, that I've decided to completely remove the Gitweb package from my ...
0
votes
1answer
44 views

How to select the tag of the latest non-unstable/release candidate version?

I've downloaded the latest kernel sources: git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git cd linux-stable git tag -l | less and picked v3.9.1. git checkout -b ...
1
vote
0answers
54 views

Making zsh filename completion case-insensitive everywhere

I have the following line in my zshrc to make filename completions case-insensitive: zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' This works most of the time but I’ve noticed that if I ...
4
votes
1answer
24 views

Shell script: filter list of .pdf files, to exclude those with a .tex source file

I have a linebreak-separated list of file paths, all to pdf files. I would like to filter out all those which have a corresponding *.tex file in the same directory (and so can be presumed ...
4
votes
1answer
67 views

git: show which files have changed between kernel 3.18.6 and 3.18.7

I have checked out linux kernel git repository git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git I know how to use git log, git show and similar commands to see ...
0
votes
1answer
25 views

get the tag of a git branch

I'm currently trying, for fun, to build a package management system (similar to apt / yum / zypper, etc...) using the git revision system, and I' searching for a way to know what is the latest stable ...
1
vote
3answers
36 views

xargs git: skip user input

I have an xargs function that calls git commands recursively. When I now call gitr log I have to hit enter until the end or q to get the next xargs call to run. Can I tell xargs to skip user input ...
1
vote
0answers
28 views

Non-deterministic errors when using nested sshfs

The OSX implementation of sshfs doesn't like to connect to my Android phone running SSHDroid, so I'm attempting to gain access by mounting an ubuntu VM via sshfs which in turn has a mountpoint to the ...
0
votes
1answer
19 views

I'm trying to deploy with git to a semi-managed vps, need to write a script to change owners

I'm trying to deploy my sites on my company's semi-managed vps server using this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps It ...
1
vote
2answers
84 views

Running bash script with sudo, and git inside of it

I have such a bash script: #!/bin/bash cd /home/user/projekt git config core.sparseCheckout true git pull origin master wait rm -rf ...
1
vote
1answer
53 views

zsh git command auto-complete add extra origin to the git branch name

After I clone a git repository locally, I want to switch branch to, says, 'ABCD'. $ git branch -a * master remotes/origin/ABCD remotes/origin/HEAD -> origin/master remotes/origin/master $ ...
1
vote
1answer
27 views

Does git no longer support automatic rebasing?

Very recently git has started merging even though I have set it to always rebase: $ git config --list | grep -F branch.autosetup branch.autosetuprebase=always $ git pull [Removed everything in the ...
0
votes
1answer
181 views

ssh connection to gitlab.com fails behind home router, but is fine when at workplace. However, Github and Bitbucket over ssh are fine at home

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
24 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
1answer
66 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
vote
0answers
52 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 ...
3
votes
1answer
36 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
1answer
352 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 ...
3
votes
1answer
52 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
50 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
17 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
56 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
367 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
52 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 ...
1
vote
1answer
67 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 ...
2
votes
5answers
109 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
86 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
27 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
204 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
47 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
42 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
43 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
371 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
234 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
261 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 ...