Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
3
votes
1answer
17 views
Storing git results in a variable results in weird behaviour [duplicate]
I have a git repository with 2 branches:
$ git branch
* master
test/branch
I can list specific branches individually by doing the following:
$ git branch --list master
* master
$ git branch --...
1
vote
2answers
42 views
Dealing with machine specific configs when using git for configuration management
I've been using a git repo for managing my systems configs for a while now. I used the documentation on Digital Ocean tutorials here. Pretty much I have a remote repo on a server. Do a git clone of ...
0
votes
1answer
28 views
bash if condition on git command result
I have the following error due an invalid git command within my shell-script. git push blabla master results in fatal: 'blabla' does not appear to be a git repository
I would like to respond to ...
0
votes
0answers
12 views
Cause of git error - Insufficient permission for adding an object to repository database ./objects? [duplicate]
I'm skeptical about this error and want to share one cause. PLease share your views on whether it could be a reason for above mentioned error.
Scenario 1:-
i). I have cloned a local git repo which ...
0
votes
1answer
8 views
Remove all objects in repo but specified object
I'm trying to write a program that will get an object from github, without cloning the entire repo. The last line does not work, giving me
a Syntax error: "(" unexpected. It is supposed to remove ...
0
votes
0answers
25 views
CONFIG_LOCALVERSION_AUTO Behaviour
I'm compiling my own kernel based on 4.7.0, that I got using git, and want to use CONFIG_LOCALVERSION_AUTO, however I'm left a little confused, because I can't find any trace of it. I think I'm ...
0
votes
0answers
18 views
git - Insufficient permission for adding an object to repository database ./objects [on hold]
I had successfully cloned a git local repository, added& committed a file to my local repo. However I forgot to git pull the updated master repo before pushing my committed file to the master repo....
1
vote
2answers
20 views
Git - Remove file from two branches
I have two branches, which contain a file that has recently been added to git ignore. It is an auto-generated file. I removed it in the master branch from the cache using git rm --cached fileName. ...
1
vote
1answer
18 views
Git tracking dotfiles that are symlinked
I keep my dotfiles in a private git repo on bitbucket and this works great for the majority of my files (.vimrc, .tmux.conf etc) then I just set up symlinks from my home directory to my cloned gitrepo ...
1
vote
0answers
38 views
What is return code 1 for git-rebase? What are other values it could return?
I've got a script that takes changes from master and applies them to all branches. The script works well for us because we tag our releases and use dev-branches. We don't maintain a separate branch ...
1
vote
1answer
35 views
RepoForge used across many StackOverflow docs is down, What is the alternative?
I'm trying to download git. I could build from source except I have no source packages.
I tried yum install git but that couldn't find it.
I tried downloading the git rpm directly from Repoforge , ...
2
votes
0answers
65 views
Git Server with several repos
I'm setting up a Git server, and there will be three different groups working on different projects iOS, WebDevel, Android. I need to do it in a secure/safe way.
Meanwhile, I don't want iOS ...
1
vote
0answers
16 views
Merging part of kernel - best way?
For example : I have a kernel 3.16 from my embedded support but i want to have some network wireless drivers from 3.19. What is the best way to merge only this drivers(not full kernel)?
I tried ...
1
vote
1answer
41 views
Checking for errors in bash script
How can I modified this script to conditionally execute ${deleteOldBranchRemote} when there is no error executing ${getRename}?
Now_hourly=$(date +%d%b%H%M)
#echo "$Now_hourly"
newrcName="rc$...
1
vote
1answer
21 views
Bash command inside .gitconfig file
I have a string (Github token) inside a file and I want this to be accessible via gitconfig only after I enter my keyring password.
For this I created a file /secret/token, and then chmod it to 400. ...
1
vote
1answer
29 views
Colored word-diff just like git's?
I've been for long using git's (colored) --word-diff which I find awesome. I found myself today in a situation where I had two strings I needed to compare word by word and craving for something just ...
1
vote
1answer
33 views
How to install custom source from git using my package manager in Gentoo?
I would like to install custom source from a git repository, but using my package manager (emerge for portage).
Background
I have installed Gentoo using EFI using Sakaki's tutorial, so I have ...
1
vote
0answers
13 views
How to handle multi-machine-dot-file-versioning
I'm thinking about versioning my dot-files via git on a public repository. I've moved all the interesting dot-files like .profiles or .vimrc to the repository and subsequently symlinked them to there ...
1
vote
2answers
41 views
git not using global config file or public key
I've setup a global git username and password while logged in as root on my Fedora server with the following commands:
git config --global user.email "[my email]"
git config --global user.name "[my ...
0
votes
0answers
13 views
Unknown mergtetool vimdiff
I'm running Red Hat 2.6.32. When I run "vimdiff", vim gets pulled up. When I do a "git mergetool" on my repo, it says "Hit return to start merge resolution tool (vimdiff)". I hit return, but then I ...
0
votes
2answers
17 views
How to make git clone install cli tool?
I am creating a cli tool in nodejs, that i want people to be able to run like this:
git clone mytool.git
mytool -arg1
Is it possible, or there needs to be a step in between. What would it be.
3
votes
1answer
21 views
“git show” shows strange characters on XTerm
On FreeBSD 10.3, I run a command like git show on xterm, the output contains some strange irrelevant characters as below. I'm not sure why.
2
votes
2answers
57 views
how to temporarily configure SSH proxy server
I'm often in a network that for some silly reason blocks TCP destination port 22. It doesn't seem practical to use a full VPN just to overcome this issue, so I'm sometimes using SSH proxy (via ...
-2
votes
1answer
17 views
How could I find those git documents('Everyday Git[1]' & 'Git User's Manual[2]') mentioned in the man pages?
The git(1) manual page says:
See gittutorial(7) to get started, then see Everyday Git[1]
for a useful minimum set of commands. The Git User’s Manual[2]
has a more in-depth introduction.
Where is ...
0
votes
1answer
97 views
Git Bash for both Ubuntu/Linux and Windows requires ssh-agent on restart
Each time I need to use git for both my Linux server as well as my home computer running Windows 10, I need to start ssh-agent, then provide it with my GitHub RSA key, the problem being that doing so ...
3
votes
1answer
59 views
Git pull error always for a binary file
I finished a git push to a Bitbucket repository and in the Bitbucket account I found these update were done. But when I do a git pull in a production CentOS server, I got error below. Does anyone know ...
0
votes
0answers
7 views
Openshift Build Failed/Cancelled
I am going to deploy JSP site on Openshift Redhat Cloud Server.
My domain is http://jsp-moristems.rhcloud.com.
I cloned the application using Git, removed src folder and pom.xml file, copied ROOT.war ...
1
vote
1answer
16 views
After git, folders and files gone
I had a directory such that
$ ls
$ README.md testA.c testB.c a_large_folder another_folder
my most recent add->commit->push consisted of
$ README.md testA.c
Normally, my lazy self is used to ...
1
vote
0answers
28 views
How can I ship an executable file?
I have a project that is hosted on GitHub. On my local machine I have created an executable file that installs the program. However, once uploaded to GitHub and cloned somewhere else the user must ...
0
votes
1answer
22 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
42 views
Using git push to create remote branch on the fly without creating local branch [closed]
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
94 views
Unable to clone git repository on ubuntu [closed]
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
96 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
43 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
47 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
34 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
27 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
52 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
16 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
35 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
14 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 ...
1
vote
1answer
167 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
67 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
40 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
37 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
111 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
29 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
279 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
52 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
33 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
...