Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
2
votes
1answer
26 views
Have tree hide gitignored files
Is there a way to make tree not show files that are ignored in .gitignore?
Thanks!
1
vote
0answers
9 views
How did I get the git commits to show up in autocomplete?
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 ...
1
vote
1answer
29 views
Why you cannot `git pull SHA…650839#file-diff.pach`?
I want to download a portion of this diff: https://gist.github.com/sergeykish/650839#file-dvorak-de-diff. Pseudocode
git pull https://gist.github.com/sergeykish/650839#file-dvorak-de-diff.patch
0
votes
0answers
11 views
Attempt to push to remote repo failed, Hooks at play
Our GIT server was moved to another location, and since then every push for any repository is getting rejected. To get around I could disable the reject-merge-commit-hook, but that is not good.
I ...
0
votes
1answer
68 views
Why I cannot purge mono-devel on Ubuntu Linux 16.04?
After I sudo apt-get install mono-devel , when I try to purge mono-devel on Ubuntu Linux 16.04, I get the following error message:
Reading package lists... Done
Building dependency tree
...
1
vote
1answer
31 views
Does anyone know a surefire way of installing git on Solaris 9?
I tried the OpenCSW method but I am afraid that is only Solaris 10 and 11. git command just yields command not found. Surely someone out there has configured/used git on Solaris 9.
0
votes
0answers
7 views
Git + Nginx - Is it safe to have https auth for cloning and pushing to repo, while remove any auth from gitweb block?
I have following nginx configuration on Ubuntu 14.04 to use together with git httpd backend and gitweb to anonymous browse of repo and push/clone with authentication. Is it safe to use such or I ...
0
votes
0answers
24 views
Get rid of ksshaskpass in KDE Plasma (Fedora 23)
I'm using Fedora 23 with KDE 5 Plasma. I'm new with KDE, and I'm still setting up the environment so it can fit me. I recently used a git command, which asked for my github credentials - but instead ...
2
votes
3answers
64 views
Problem with sudoing ssh - `sudo ssh …` fails
I am trying to use git salt ssh access (which runs with root). The error is always:
Permission denied (publickey).
I managed to reproduce the problem, simulating what salt may be doing, by ...
0
votes
0answers
24 views
git does not work for some repo but work for others
I encountered a very weird issue for git.
I have three repo.s in github, say repo1, repo2 and repo3.
On machine 1, I used to be able to clone and pull all three repos.
However, suddenly I couldn't ...
0
votes
0answers
63 views
Why I can't open the kernel git repo in my GIT GUI client?
I successfully cloned the kernel using git in command line, nevertheless I find difficult to navigate throughout the repo using the cli and I got a gui client, gitkraken to be specific.
The thing ...
4
votes
0answers
35 views
Git with multiple users on other systems using setfacl?
I'm setting up a git environment where multiple developers will work with per project.
We have 1 server running git, and 2 seperate servers, 1 live and 1 dev.
on dev I created a group and added the ...
0
votes
1answer
21 views
Git Daemon not using specified base-path
I have the following configuration in /etc/xinetd.d/git
# description: The git server offers access to git repositories
service git
{
disable = no
type = UNLISTED
...
0
votes
1answer
67 views
ssh/git does not use GUI to ask for password after upgrade to to Ubuntu 16.04
I used to run Ubuntu 14.04 on my computer. Whenever I used ssh keys to log in to various servers, I used to get a GUI pop-up dialog asking me for the password for my key. After entering the password ...
0
votes
1answer
27 views
Why does git wrap my log output in quotes?
If I used the following command:
git log --pretty=format:"%ad %s%d"
the output is:
Tue Apr 26 11:29:24 2016 +0000 Updated configuration
If I do the following:
SIMPLE='--pretty=format:"%ad %s%...
3
votes
3answers
49 views
Conditional PS1
I'm basically trying to make my PS1 look like this when in a git repo:
$ ~/Projects/Blah (master):
Or if I'm not in a Git repo, I want it to look like this:
$ ~/Projects/Blah:
This is my current ...
1
vote
1answer
39 views
How to backup files in multiple directories with git?
The example below is simplified to show the core of the problem, not the problem itself(my file tree is more complicated than that).
Let's say that I have two files I want to back up; one in ~/...
2
votes
1answer
16 views
How to replay Git repository history into subdirectory?
Let's say I've got two repositories aye and bee and I want to get rid of bee, in such a way that the linear history of bee/master is "replayed" in a new subdirectory (several levels deep) of aye. I ...
0
votes
1answer
79 views
Debian git error: undefined symbol: __gmpn_cnd_add_n
$ sudo apt-get install git
$ git clone sth
Cloning into 'a-folder'... git-remote-https: symbol lookup error:
/usr/lib/x86_64-linux-gnu/libhogweed.so.2: undefined symbol:
__gmpn_cnd_add_n
...
1
vote
2answers
43 views
Detect and remove empty directories from list
A common problem game developers have with the Unity3D engine and Git is that Unity and Git fight for whether an empty directory should exist or not - Git doesn't care, Unity3D will keep making git ...
4
votes
5answers
472 views
Can I display GIT in prompt when current directory has a .git folder?
Can I display GIT in prompt when current directory has/contains a .git folder? Is there a way to do this? My current prompt is defined like so:
export PS1="[\u@\h] \w $ "
So, my prompt looks ...
1
vote
3answers
85 views
Git Backup /home with other repos inside it
I'm trying to make an automated backup of my /home directory. In theory this is simple by running this in a cronjob:
cd /home
git add .
git commit -m "nightly backup"
git push
where push will push ...
1
vote
2answers
36 views
How to get first 5 chars of a git commit hash id and store it in a variable in bash?
${$(git rev-parse HEAD):0:5}
bash: ${$(git rev-parse HEAD):0:5}: bad substitution
git rev-parse HEAD returns the hash id, but how do I make a substring out of it?
if I divide it into two lines, it ...
2
votes
0answers
28 views
How to turn a git repo into a ppa
Suppose I have a git repo, the instructions for building are:
sudo apt-get -y install build-essential git mesa-common-dev libglu1-mesa-dev libsdl2-dev libsamplerate0-dev
cd ~
wget http://download.qt....
1
vote
1answer
37 views
Share a git repo over LAN
I would like to share some of my work with my colleagues. The whole company uses flavors of Debian Linux and is connected in a LAN network. I don't want to bug the administrator with access to the ...
11
votes
1answer
468 views
Remember password for ssh key for some time
I created ssh key. I use it to connect with git repositories. When creating the key, I noticed the prompt that said the password should be hard to guess. Therefore, I came up with 40+ characters-long ...
3
votes
1answer
51 views
zsh: Tab completion for function with Git commands
In zsh I am using the following function to delete a local and a remote branch with one command:
gpDo () {
git branch -d "$1" && git push --delete origin "$1"
}
Currently, auto-...
2
votes
0answers
65 views
git push/pull with ssh key
I have a 'git --bare' repo on a linux machine.
I wish to allow another user from a different machine to push/pull to
it.
I have their ssh key.
Is there some way I can allow them to execute the ...
1
vote
1answer
29 views
How to allow `gitolite writable` to everyone?
I want for clients to be able to lock any branch (or at leas repository) to which they have write control. gitolite writable off seems to do just that. But I can't grasp the permissions.
$ ssh git@...
1
vote
0answers
49 views
git-filter-branch leaving untracked files
I am trying to use git filter-branch to refactor a repository. I am trying to extract one directory from it. Since I am not familiar with the command, I have been experimenting with a copy of the ...
2
votes
2answers
68 views
How to find out which files are outside git repository
Suppose we have a directory with a git repository & files:
.git
/test/inside-1.txt
/test/outside-1.txt
outside.txt
inside.txt
"inside" files are within git repository, "outside" are not. I'd ...
3
votes
2answers
142 views
Crontab shell script git pull and forever start
I'm trying to set up a Raspberry Pi to check a repo on startup and then fire up a node script with forever.
I got the second part working, but I tried a dozen git commands with no success.
Here is ...
1
vote
0answers
14 views
How to pipe bash completion suggestions? [duplicate]
I am trying to save bash completion suggestions to use them. So, I am trying to simulate two tabs and pipe the result to something else. I am looking for something like:
$ getCompletions git ...
0
votes
0answers
11 views
Is there a way to obtain an official Git binary without using a package manager? [duplicate]
I'm a user on a shared Unix system. For one of my scripts, I need a particular version of Git, but the version installed on the system is too old. So I would like to install Git in one of my local ...
0
votes
0answers
198 views
Where in CentOS 7 should I install Ruby?
I am installing Ruby and rbenv on a CentOS 7 by following the instructions in this tutorial, with modifications. One of the recommended lines of code is cd followed by git clone commands. I assume ...
3
votes
3answers
327 views
write error: No space left on device. Removing 'extra' packages. Attempting recovery
The Issue:
When I type:
dpkg-query -Wf '${Package;-40}${Priority}\n' | sort -b -k2,2 -k1,1
I get a list of all installed packages on my machine, example:
...
raspberrypi-artwork ...
0
votes
1answer
53 views
git push via ssh to ubuntu VM not working but I am able to ssh to the same ubuntu
I have setup of ubuntu Guest VM on Virtualbox on MAC HOST.
I have setup the ubuntu as server with the help
Created ssh key and put the public key on the Ubuntu and I am able to ssh
I have added ...
1
vote
2answers
78 views
Forward ssh for git user to git server
It is surprisingly difficult to find information on this simple problem.
Like many people we run a gitlabs/gogs server on a remote instance. Currently it listens on port 10022. We also run ssh on ...
1
vote
0answers
29 views
How to install the latest version of Git on Ubuntu? [duplicate]
I have version 2.5 of Git on Ubuntu:
$ git --version
git version 2.5.0
but Git is at version 2.7.1 now. The Git website says to do
apt-get install git
to install it. But I tried both sudo apt-...
1
vote
0answers
150 views
Build CentOS RPM for current git release, unsuccessful rebuild with alternate prefix
I am stuck in an effort to provide an maintain an up-to-date git release for a collection of CentOS Linux servers. I was hoping to be able to create binary RPMs that I could just have published to a ...
0
votes
1answer
97 views
How do I get git to give me an acceptable pkgver for Atom which I can use to check it out?
I am working on the atom-editor-git PKGBUILD in the AUR, hoping to turn it into an Atom equivalent to the gvim-git PKGBUILD. See the gvim-git PKGBUILD updates its package version whenever it is run to ...
1
vote
1answer
22 views
Merging text file directories
I have two directories: Libc-825 and Libc-1044. Imagine that version 1044 is newer, but buggy. Is there a way to merge these file trees? I have there C sources with not so big differences. I have ...
0
votes
0answers
56 views
Git “unknown revision” error when within bash script
I'm writing a shell script that needs to perform certain operations based on the last commit's message of my local branches with a name starting with "task".
Here's what my script looks like
#!/...
0
votes
2answers
34 views
Patching diff-files
I've downloaded a tarballed version of 0.85 "MTR" -> http://www.bitwizard.nl/mtr/
and installed it.
I later saw that a 0.86 diff file exists. I downloaded this in order to patch it, but am confused ...
0
votes
0answers
8 views
How do I clone the git repository of an individual Arch Linux package's source files? [duplicate]
I would like to clone this repo for VirtualBox, so that I can bump it to version 5.0.14 locally and update VirtualBox on my Arch machine using it. I know I can clone community.git from https://...
0
votes
1answer
198 views
Can someone please explain this error I'm getting in my script
I'm trying to create a script which I can set as a cron job which adds all my dotfiles to a folder I've set up as a github repo then push them every evening. My script is the following.
cp ~/.!(|.|...
1
vote
1answer
48 views
Estimate time spent on Git project with grep
Consider a Git log:
commit 4d6b30238fbfc972ea4505cadf43abd316506d9e
Author: Dotan Cohen <[email protected]>
Date: Mon Jan 11 22:41:21 2016 +0200
Final foobar version
commit ...
1
vote
1answer
81 views
Updating a git variable in the Shell prompt on every command
I am running TCSH and I would like to update my prompt every time I run a command. I think can currently do that via backticks.
set tmpstr = `git status --untracked-files=no --porcelain`
set ...
2
votes
1answer
30 views
Find all git repos that do not contain any one of .gitignore and .gitattributes
I basically want to find all git repos that have neither a .gitattributes nor a .gitignore file at the root.
I used find . -type d '!' -exec test -e "{}/.gitignore" ';' -print to find it but it lists ...
3
votes
1answer
26 views
command-click git commit ID in Terminal, and be taken to that commit in github?
I'm running a Mac and use iTerm with ZSH as my shell.
Currently I can command-click (⌘+click) on links or directories in my iTerm window, and that directory or web link will open.
Is there a way (...