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

List files added and removed between tagged releases

Given two tagged releases in a Git repo, is it possible to list the files that were either added or removed? For example, suppose tagged release 1.0 has a number of header and implementation files. ...
0
votes
1answer
47 views

Error setting certificate while doing 'git clone' in redhat

Error: % git clone --depth 1 http://github.com/junegunn/fzf.git ~/Downloads/fzf Initialized empty Git repository in ~/Downloads/fzf/.git/ error: error setting certificate verify locations: CAfile: ...
3
votes
2answers
177 views

Can users in a group access a file that is in another user's home directory?

I have 3 users A,B and C inside a group 'admin'. I have another user 'D' in whose home directory, there is a project folder. I have made D as the owner of that folder and assigned 'admin' as the group ...
1
vote
3answers
163 views

Pipe filelist into 'git add'

I performed a fresh clone and copied/pasted a working directory into the cloned directory. Now have a list of changed files: $ git status --short | grep -v "??" | cut -d " " -f 3 GNUmakefile ...
1
vote
3answers
93 views

Debian - Disable console access for specific user

I have a server with a git server running on it. I would like git users to be able to clone, push and pull using their linux username and password, but not to be able to login to linux console. If I ...
0
votes
1answer
72 views

Busybox pager with color capability?

I asked on Superuser about colors for git log in MobaXterm (on Windows), but it turned out that the problem wasn't MobaXterm—it's the lack of a -R flag in busybox's less. It would help my workflow ...
0
votes
4answers
105 views

Colorize filenames based on status for git diff --name-status

I often use git diff --name-status BRANCH_NAME to get the list of modified files. Is it possible to colorize the output of that command similar to the output of git status - green for added files, ...
1
vote
1answer
15 views

How to check-in annotated tags?

Our project recently moved from Sourceforge to GitHub. The migration did not include the subversion tags. I have very little Git skill, so I used 2.6 Git Basics - Tagging as a guide. I performed a ...
1
vote
1answer
193 views

“X11 forwarding request failed” when connecting to github.com

I'm getting a bizarre error message while using git: $ git clone git@github.com:Itseez/opencv.git Cloning into 'opencv' Warning: Permanently added the RSA host key for IP address '192.30.252.128' to ...
2
votes
2answers
48 views

using git to version-control any file edited with my text editor

Is there any way to integrate text editor (joe in my case) with git in such a way, that every change to any file is automatically committed in git (probably with a time stamp), so that I can always go ...
2
votes
1answer
87 views

Errors with git alias shell command

I'm using bash version 4.1.2(1)-release (x86_64-redhat-linux-gnu) on cygwin with git 1.7.1. I wanted to make an alias for a command that needed to use the input argument twice. Following these ...
0
votes
1answer
24 views

How to have a global .gitconfig for 2 or more git repos?

This is my .gitconfig as it stands now :- $ cat .gitconfig [user] name = Shirish Agarwal email = shirishagxyz@gmail.com [credential] helper = cache --timeout=3600 This is in - $ pwd ...
2
votes
1answer
2k views

How to fix “Hunk #1 FAILED at 1 (different line endings)” message?

I am trying to create a patch with the command git diff sourcefile >/var/lib/laymab/overlay/category/ebuild/files/thepatch.patch when I apply the patch, it gives me $ patch -v GNU patch 2.7.5 ...
2
votes
2answers
36 views

git --diff like command for Linux local dirs

dir1 has 1 file and dir2 has 2 files as below: /tmp$ ls dir1 file1 /tmp$ cat dir1/file1 line1 line2 line3 /tmp$ ls dir2 file1 file2 /tmp$ cat dir2/file1 line1 /tmp$ cat dir2/file2 line1 /tmp$ diff ...
1
vote
0answers
68 views

No permission to git clone?

What is possible problem, if I have SSH key, and trying to git clone one folder from git lab, but I still dont have permission for it ?
2
votes
1answer
68 views

Is there a way to throttle git while it's cloning a repo.?

Is there a way to tell git that only use so much bandwidth while cloning a repo. ? I may have multiple applications each of which demands network speeds, is there a way to tell git to do this ? I ...
1
vote
1answer
41 views

Terminating Git

I accidentally typed git init in my home directory which caused git to start tracking everything in my home directory and I need to remove it. Is there a git command or a way to terminate git ...
2
votes
1answer
90 views

Git “write failed, file system is full fatal: unable to write new_index file”

I am running OpenBSD 5.7 and am modifying the kernel for a university assignment. It's running in a virtual machine. I cloned the repository into '/usr/src' and started to modify 1 file. I went $ ...
4
votes
2answers
1k views

Is it possible to clone only part of a git project?

I found a collection of slackbuilds, some i need there are on GitHub. https://github.com/PhantomX/slackbuilds/ I don't want to get all git. git clone https://github.com/PhantomX/slackbuilds.git But ...
5
votes
2answers
80 views

how do I call git commands without 'git ' in front?

How do I tell my zsh to automatically try a command with git in front, if the command is not found? E.g. I want to run $ status and if there is no status in $PATH, my zsh should try git status.
0
votes
1answer
31 views

Using Git on System Files [closed]

As the title suggests, I'm trying to have version control (using Git) on a particular subdirectory of /usr/. Namely /usr/share/texmf/tex/latex/. It is very annoying to constantly have to manually ...
3
votes
2answers
129 views

Is it possible to store user's crontab in user's git repository on OpenBSD?

On OpenBSD and with OpenBSD's cron and crontab, is it possible to store the crontab(5) of a user in a git repository of the same user? What would be the proper way to accomplish something like this? ...
1
vote
0answers
60 views

mount a NAS network share, but let the NAS sleep

I have a NAS (WD MyCloud) which has by default NFS/SMB access enabled. I also have a raspberry pi, that I would like to use as a git server that is addressable over internet using a SSH connection. ...
1
vote
1answer
30 views

Use suggested correction on typo

I had this idea: When you type git glone https://repo.git you get git: 'glone' is not a git command. See 'git --help'. Did you mean this? clone How can you automatically accept ...
1
vote
1answer
39 views

Backup workspace without local copies of remote git repositories

I would like to backup my workspace without backing up all the content of git repositories that are online available anyway. So I think of something like, that I could backup only the file ...
1
vote
3answers
761 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
129 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
74 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
43 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
90 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
213 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
96 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
1k 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
138 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 ...
9
votes
1answer
122 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
52 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
57 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?
4
votes
1answer
1k 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
498 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
753 views

how to use ~/.ssh/config with Windows/PuTTY?

How can I use ~/.ssh/config with Windows/PuTTY? Are PuTTY settings stored in the registry? I wish to have my PuTTY settings in git. So it needs to be a human readable text file.
0
votes
1answer
334 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
36 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 ...
1
vote
1answer
56 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
59 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
144 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
55 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
79 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
147 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
73 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 ...
1
vote
0answers
289 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 ...