Tag: linux

Phabricator git ssh clone fails with password required error

root@jupiter:/home/jupiter/projects# git clone ssh://git@demo.jupiter.com/diffusion/TD/transcend.git Cloning into ‘transcend’… sudo: sorry, a password is required to run sudo fatal: Could not read from remote repository. I have set up the SSHfollowing the manual. I also have the conduit ping returning the correct message: root@demo:~# echo {} | ssh git@demo.jupiter.com conduit conduit.ping {“result”:”demo.jupiter.com”,”error_code”:null,”error_info”:null} Below is my visudo file […]

Are git commands supposed to be run under the working directory directly?

Suppose I have a git working directory, i.e. the directory which has a subdirectory called .git. I wonder if the current directory matters when I run a git command. Is it okay to run a git command directly under the working directory directly under some subdirectory of (subdirectory of) the working directory directly under the […]

git: editing a file cause ^M to appear when using git diff

I have a couple of source files inside a local git repo. The files have been pulled from a remote git repo. When I do a “$git status” I see the following: $git status # On branch master nothing to commit, working directory clean However, when I edit any source file (using vim or gedit), […]

Find total size of uncommited or untracked files in git

I have a big horrible pile of code and I am setting it up in version control. I would like a command I can run on Linux to give me the total size of the files that would be commited and pushed if I ran git add -A && git commit -am ‘initial commit’ The […]

Git – how to remove branch from checkout autocomplete

I’ve deleted some local branches via git branch -d branchname, but they are still exist in autocomplete (when I put git checkout, then press tab key, I see all deleted branches in list). I’ve tried to make git gc and git prune, but nothing changes.

Linux Git: Unable to access remote: error setting certificate verify locations

So I’m running OpenSUSE Leap 42.1, and Git 2.6.6. Up until today, I’ve had no problems pushing/pulling/fetching from a remote GitHub repo. Now, today, I’m having this error message: fatal: unable to access ‘https://github.com/myName/myProject.git/’: error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none Anytime I do a push/pull/fetch, I get this. My first thought was […]

How to use git over custom ssh software?

SSH in our country is blocked, So I have to use a forked ssh software called obfuscated-openssh , I installed it in /opt directory in linux OS , How can I force git to use /opt/ob-openssh/bin/ssh not /usr/bin/ssh ?

Git credential helper doesn't work

I’ve just installed openSUSE, which came with Git version I’m trying to push some repository after having configured the credential helper with this line: git config –global credential.helper ‘cache –timeout=3600′ This line doesn’t throw any errors. However, after I enter my credentials initially, and expect to get them cached, the credential helper does not […]

How does Git know which repository to push to?

I’m a complete noob when it comes to version control, but I recently started using GitHub to host some of my projects. I blindly use the command git push origin master to push changes to either of the two repositories. I don’t understand how Git knows which repository to push to. I use the same […]

Script getting git working directory root?

Possible Duplicate: Is there a way to get the git root directory in one command? I am writing a bash script (actually a Makefile) that needs to use an argument that is a directory relative to the root of the git working directory that contains the current directory. That is: /home/me$ git clone /abc/foo.git directory […]

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