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

1
vote
2answers
26 views

Install Git offline without sudo

I have a corporate Linux server which does not have internet connection, and sudo access needs to be approved through many levels of hierachy. I've tried install git but I soon realized this needs a ...
1
vote
1answer
11 views

How download complete patch series from patchwork?

I want to download the patch series RFC PATCH 00/26 i.MX5/6 IPUv3 CSI/IC In patchwork I can get access to individual patches https://patchwork.linuxtv.org/patch/24331/. But downloading 26 patches and ...
0
votes
1answer
14 views

Need Info on linux command ssh-keygen -t rsa -b 4096 -C “your_email@example.com”

I have to access personal git repository at the university . I have been asked to Generate SSH key. I am using this command to generate an SSH key: ssh-keygen -t rsa -b 4096 -C ...
1
vote
1answer
26 views

How to push a new branch to remote git with commit message

I am new to git. my remote git server does not allow me to push anything without having a commit message. Now i want to convert my perforce code to git using git p4 and push the converted code as a ...
1
vote
1answer
66 views

How to un-commit a file in git?

I have did git commit <file> for a file and also submitted that file with git submit <file>. but now i want to un-commit the changes. i have also tried git reset HEAD~1 <file> ...
0
votes
1answer
56 views

Elegant Way To Store Dotfiles on GitHub

I need an elegant solution to store my dotfiles on GitHub for easy access. I tried to create a dotfiles directory and symlink all the dotfiles into there. Then I tried adding the symlinks to git and ...
2
votes
2answers
58 views

Git config forwarding

I don't know if this even possible or not. I was wondering if there is any way like SSH Agent forwarding by which we can forward our .gitconfig on the remote server, and git automatically picks the ...
0
votes
1answer
102 views

Why can't I use ssh?

The problem seems to occur straight from the time I have installed Ubuntu 14.04 LTS. I first realized this problem when I was trying to connect with my hosting at HostGator. I neglected and thought ...
0
votes
1answer
35 views

how to pipe output from git commands into unix diff utility?

I am trying to achieve something along the lines of diff -ywB --suppress-common-lines `git branch --merged prod-server` `git branch --merged test-server` so that I can know the difference of what ...
1
vote
0answers
20 views

Display only relevant hunks of a diff/patch based on a regexp

git log -G<regex> -p is a wonderful tool to search a codebase's history for changes that match the specified pattern. However, it can be overwhelming to locate the relevant hunk in the ...
1
vote
1answer
35 views

How to download a sub directory on git.gnome.org?

I want to tweak the Adwaita gtk3 theme a bit, and I found it here. There are two many files to download, and I had no luck using neither git clone ...
0
votes
0answers
20 views

gitg - no blame mode in 3.14

Since the new version of gitg has changed dramatically, I cannot seem to find some things I use to use such as blame mode. Did it disappear in 3.14.1-r1 or newer?
2
votes
1answer
58 views

Git submodule shows new commits, submodule status says nothing to commit

In a git repository, I have set up my .gitmodules file to reference a github repository: [submodule "src/repo"] path = src/repo url = repourl when I 'git status' on this repo, it shows: On ...
0
votes
1answer
105 views

ssh asking for passphrase that doesn't have passphrase

I'm trying to build docker image with this docker file and I need to clone some private repositories from bitbucket. FROM ubuntu RUN chsh -s /bin/bash RUN apt-get update RUN apt-get install -y ...
1
vote
1answer
41 views

howto use ~/.ssh/config with Windows/PuTTY

howto use ~/.ssh/config with Windows/PuTTY? Are PuTTY settings stored in registry? I wish to have my PuTTY settings in git. So it needs to be a human readable text file.
0
votes
1answer
72 views

A bash script that can automate git commit message contents

Normally when I commit a change to a submodule in Git (and if that's the only change), I will provide the result of git diff <submodule-name> to the body of the commit message (with ...
0
votes
2answers
19 views

can I set up openssh-server on local machine without messing my git ssh access to git and gerrit server?

We have git/ gerrit ssh on local machine (~/.ssh/id_rsa id_rsa.pub known_hosts + ssh-agent ) Now we want to access local machine from multiple remote clients (4-5 users, 1 user at a time), to ...
0
votes
0answers
25 views

enforcing php version based on git branch

Is there a way similar to .rvmrc to automatically set the php version used while developing in a branch? I think phpbrew will do what we want, however we are uncertain how to enforce a specified ...
1
vote
1answer
34 views

ssh-agent and timeout

I am using a script to update my system: cd /opt/ chmod 600 /opt/updater/.ssh/.pk ssh-agent bash -c 'ssh-add /opt/updater/.ssh/.pk; git stash; git pull origin master' /opt/updater/bin/updater.sh My ...
1
vote
2answers
42 views

Show git branches that diverged from remote?

Which command lists all the local branches that diverged from the remote branches they follow (either because the local branch has new commits or the remote one)?
0
votes
0answers
38 views

git refuses to connect without proxy

I work on a Linux system in a Windows environment. To authenticate with a NT proxy server I had setup cntlm and configured system programs to use it via setting http_proxy environment variable in the ...
2
votes
2answers
44 views

What optimized tools are available for comparing directory contents?

I am mirroring a Subversion repository tag with svn2git and I want to be sure that when I checkout particular revisions, those I obtain from the git mirror match those from Subversion. My main problem ...
2
votes
1answer
53 views

Can you fetch git commit data using cURL?

I need to fetch the object of an annotated tag (i.e. the annotation message) from a remote repository and so far there doesn't seem to be a command for that (i.e. ls-remote provides only the refs but ...
0
votes
0answers
60 views

git add . error on dedicated server; fatal: Not a git repository

I was able to initialize a git repo on a directory containing one of our websites, but when I try to git add . I get this error: fatal: Not a git repository: ...
3
votes
1answer
34 views

How to view entire commit when log is filtered by file in tig

If tig is invoked with tig log some/file.txt the log will show all commits affecting that file. Pressing Enter on a line like commit d5dd1d658e5d79701fb9d028479a0fcb26a033fa will open the diff view ...
0
votes
0answers
115 views

Run Git Pull from a shell start-up script

I have raspberry-pi that loads a shell script on start up. This script runs a python script 'boot_camera.py' which is found in a repository. I Have a server which sends the raspberry-pi a command ...
0
votes
0answers
13 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
53 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
47 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
184 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
189 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
36 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
55 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
37 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
172 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
99 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
124 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
41 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
106 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
41 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
459 views

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

I'm looking for a way to get three informations from a remote repository 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
29 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
80 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 ...
2
votes
0answers
177 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
31 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
110 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
49 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
37 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
1answer
63 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
25 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 ...