Tag: linux

npm install from private gitlab repository – authentication failed

My issue is the next. When I try install a private repository with npm which I have authorization (npm install git+url_of_my_repo_with_https), I have the next error: npm ERR! git clone –template=/root/.npm/_git-remotes/_templates –mirror https://dbanos@gitlab.com/umbela/apiDMLOracle.git /root/.npm/_git-remotes/https-dbanos-gitlab-com-umbela-apiDMLOracle-git-e2462cad: fatal: Authentication failed for url_of_my_repo_with_https npm ERR! Linux 3.16.0-0.bpo.4-amd64 npm ERR! argv “node” “/usr/local/bin/npm” “install” “git+https://dbanos@gitlab.com/umbela/apiDMLOracle.git#v1.0.9” npm ERR! node v0.10.38 npm […]

Error on git patch using git am

When I try to perform a patch using: git am 0001-someFile.patch but I get this error: error: patch failed: src/***/file.c:459 error: src/***/file.c: patch does not apply Patch failed at 0001 someFile.patch When you have resolved this problem run “git am –resolved”. If you would prefer to skip this patch, instead run “git am –skip”. To […]

GITFLOW Linux Installation Issue

I changed my OS from Windows to Linux. In Windows, I didn’t have any issue installing gitflow. I’m a newbie at Linux and stuck at installing gitflow. I used wget –no-check-certificate -q -O – https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sudo sh and also tried wget –no-check-certificate -q -O – https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sudo bash but got this error: woppi@woppi-ThinkCentre-M80:~$ […]

git checkout –patch, but failed, Can't locate Git.pm in @INC

When I run git checkout –patch origin/master file.java, I see: Can’t locate Git.pm in @INC (you may need to install the Git module) (@INC contains: /usr/share/perl/5.14.2 /usr/local/perl/lib/site_perl/5.20.0/x86_64-linux /usr/local/perl/lib/site_perl/5.20.0 /usr/local/perl/lib/5.20.0/x86_64-linux /usr/local/perl/lib/5.20.0 .) at /usr/lib/git-core/git-add–interactive line 7. BEGIN failed–compilation aborted at /usr/lib/git-core/git-add–interactive line 7. I run it on the Ubuntu 12.04.4 LTS. The version of git is […]

Git weird deletion issue on Windows

The most of the work done in project was done on Linux platform, but now I’m trying to setup a clone on Windows platform. The problem is that upon git clone a file foo.bar appears to be immediately deleted (and marked so in uncommited changes). Checking git ls-files shows that file foo.bar is present in […]

How to prevent interactive ssh login?

Short Question: How do i prevent interactive(human) ssh login on a Linux machine? The unix accounts should be available only for non-interactive ssh use (like via some other program), for eg: via a GIT client etc… The idea is to prevent end-users from logging into the Linux machine interactively. It is strictly meant to be […]

Git push to cPanel account – Push did not update modified file

SOLUTION BELOW – How to use git to push to cpanel server I finally got somewhere with setting up Git between my localhost (WAMP setup on Windows 8.1) and my Linux server (CentOS 6.6 x64 with cPanel 11.46.2). Locally I created a bare clone: git clone –bare my_project my_project.git NOTE: my_project is an example name, […]

How to get Git to convert CRLF files to LF, on Linux?

I’m trying to do something very simple: check out a repo that has CRLF endings (and no .gitattributes) file, and end up with native (LF) line endings. I don’t even want to commit back. I’ve read Github’s suggestion, and Tim Clem’s article, but mostly they seem aimed at Windows developers. I’ve tried this: $ git […]

Intermittent Build Failure on Jenkins

I have project in Jenkins (running on linux) that polls SCM at defined interval and builds on new changes. I am getting build failures intermittently with the following Console Output: Started by user MyUser User Building on master in workspace <http://ci.mybuild.com:8080/job/temp-project/ws/> Checkout:workspace / <http://ci.mybuild.com:8080/job/temp-project/ws/> – hudson.remoting.LocalChannel@5f2c402a Using strategy: Default Cloning the remote Git repository Cloning […]

How to get the list of patches made by this git script?

from this page i found cd ${YOUR_PATH}/L27.12.1-P2/kernel/android-2.6.35 git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/22/13722/2 && git cherry-pick FETCH_HEAD when i run this it makes paches and shows me how manny files are changed. But what if i want to know by running this which files are changed and what lines are changed? How can i get that info?

Git Baby is a git and github fan, let's start git clone.