Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
0
votes
1answer
14 views
upload ssh key on github from command line
I have found a way to upload an SSH key to my GitHub account with command line, but there is small problem.
I am able to do this with following command:
curl -u "user:pass" --data '{"title":"test-...
-1
votes
1answer
20 views
Using git push to create remote branch on the fly without creating local branch [on hold]
So here is what i want to achieve:
When I clone a repository from Github and checkout some stable branch, and make some local changes in it, then I don't want to create a local feature branch nor do ...
0
votes
2answers
36 views
Unable to clone git repository on ubuntu [on hold]
While cloning git repository I am getting the following error
Failed to connect to github.com port 443:Network is ureachable while I am able to clone on my windows machine
Edited-
git clone https:/...
0
votes
0answers
38 views
can not add key to ssh agent with ssh-add, because it asks for a pass-phrase
I just generated an SSH key, without a passphrase, to run some scripts that pull files from GitHub. However, I was having issues so I ran ssh -vT [email protected] which according to the debug statements ...
1
vote
2answers
39 views
inaccessible directory
I git cloned into a directory "/source" before I mkdired it. It did not show up in its parent directory, but when I run the ls command, the output is indented like this:
database static ...
3
votes
0answers
42 views
Tar - Transform stdin without extracting
I am attempting to transform the paths of a tar file coming from standard input without having to extract the tar first.
This is an apparent duplicate of this question, I am looking for a solution ...
0
votes
1answer
18 views
git retains remote information from a deleted repository
I cannot clone any repository anymore.
$ git clone [email protected]:myaccount/myrep.git
Cloning into 'myrep'...
conq: repository does not exist.
fatal: Could not read from remote repository.
...
0
votes
0answers
20 views
Clone git repo via ssh'ing from another pc
How can I clone git repos in a non-interactive way as follows:
for h in server1 server2; do
ssh $h "git clone [email protected]:username/reponame.git"
done
When I interactively clone the ...
2
votes
1answer
32 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
10 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
84 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
34 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
16 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
29 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
72 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
26 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
94 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
36 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
27 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
83 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
30 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
57 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
43 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
24 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
95 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
499 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
95 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
37 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
30 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
38 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
473 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
52 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
73 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
32 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
69 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
174 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
251 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
365 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
61 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
81 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
31 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
159 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
101 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 ...