Questions tagged [git]
Git is an open source distributed version control system originally designed and written by Linus Torvalds. It is generally used to keep track of source code for software projects. As a DVCS, Git provides powerful help with branching, merging, and distributed development.
2,704
questions
-1
votes
1
answer
40
views
Win program to show git repositories status [closed]
my question is: is there a program that only shows the status of the various repositories I have in my Pc (or a list of them)?
thanks in advance
7
votes
3
answers
10k
views
npm install private Gitlab Repo Permission Denied (publickey) in Powershell
I try to install a private gitlab repository via npm to another node project. The command is npm install --save gitlab:my-project#master
This fails with
npm ERR! Permission denied (publickey).
npm ...
1
vote
0
answers
43
views
Proxy ssh connection server-side
I have a server that was previously used for some git services. These have been moved to another server and I would like to, at least temporarily, ensure the user's repository remotes do not need to ...
1
vote
0
answers
85
views
Limit ssh public key to git only
I want to restrict the capabilities of the users connecting through ssh to my server.
Besides giving those users limited permissions, I want to add an extra layer of security as explained in this ...
1
vote
1
answer
173
views
Undoing a git add -A, no commit, of my home directory
On my first experimentation of git I accidentally forgot to cd to the directory I wanted to do a git add -A on resulting in a git add of my whole user directory. Now I have 5000 untracked changes on ...
12
votes
2
answers
6k
views
Get `git commit -a` to ignore submodules?
The behaviour of git commit -a seems to be to include changes to submodules, if they have new commits inside them. This isn't what I normally want, and I sometimes find myself accidentally pushing a ...
0
votes
0
answers
354
views
Getting error in linking a source folder in eclipse maven
I created an empty maven project and it created a folder structure src/main/java.
Now I want to link source from my local repo to this src/main/java.
If I go to buildpath->link source, and name the ...
0
votes
1
answer
804
views
ssh -vT [email protected] Permission denied (publickey)
Don't know why but my dev environment is broken.
I'm unable to execute npm install properly because of issues with SSH connection
For some reason my ssh connections are not working. Please help!
I ...
1
vote
2
answers
8k
views
Why do I keep getting "Authentication Failed" on Github when running through the Win10 Linux subsystem?
I'm on a machine running Windows 10, with Developer Mode enabled and the Linux Subsystem installed. When I switch into bash, I am trying to run a simple clone command from git:
git clone https://...
4
votes
1
answer
2k
views
How do I modify Cmder to show my Git change summary on the prompt? (+A/~C/-D)
I can see the output of the branch name no problem (although, in version 1.3.4+ it also strangely outputs "master -> origin" when it didn't use to), but I can't figure out why it has never ...
1
vote
2
answers
499
views
HTTP request failed on bower angular-card-input install on jenkins build script
I am getting a error while running bower script to build a frontend in angular:
bower angular-ui-utils#bower ECMDERR Failed to execute "git ls-remote
--tags --heads https://github.com/angular-ui/...
3
votes
2
answers
937
views
Checkout automatically after push
Basically, I just want to use git as sort of a versioned one-way FTP.
I have a local git repo in local/. I want to push it to server:remote/, and I want that afterwards all files are checked out in ...
37
votes
4
answers
23k
views
Git push failing with Fatal: HttpRequestException encountered
lt is really strange that when l try to use git push today,error reports
Fatal: HttpRequestException encountered and requires me to enter username and password.
l have tried git pull and git clone ...
2
votes
0
answers
72
views
How do you set up a git validation hook that checks that pushes to master only contain linear history?
How do you set up a git validation hook that checks that pushes to master only contain linear history?
I am trying to set up my git commit history according to
https://hackernoon.com/how-the-...
1
vote
1
answer
844
views
How to save diff output between two directories?
I'm running
diff -rq linux-4.15-rc9/ ubuntu-bionic/ > ubuntu.diff
but the output is just a bunch of lines with:
Files linux-4.15-rc9/tools/perf/util/metricgroup.c and ubuntu-bionic/tools/perf/...
0
votes
1
answer
10k
views
Why is Git using the wrong ssh key?
On my Windows PC, I am using Pageant and putty to login to a remote ubuntu with my ssh key (e.g. named my-key).
On ubuntu I would like to fetch code from a remote git repository via ssh. There is a ...
6
votes
2
answers
9k
views
Gpg-agent under Windows as SSH Agent for git bash
gpg-agent has options "--enable-ssh-support" and "--enable-putty-support" that allows it to use it as a drop-in replacement for the well-known ssh-agent.
I've been pulling my hair out trying to ...
3
votes
1
answer
3k
views
How to handle symbolic link in my git repo
I have two git repos, A and B under separate paths.
There is a sub-folder in one repo (A/subfolder) that contains some data files. On my local machine I have a symbolic link in B to access these ...
1
vote
1
answer
1k
views
Windows Git won't work correctly with ConEMU after updating both
I had a working workflow with Git on my Windows 7 using ConEMU.
I upgraded my Git and my ConEMU to their latest versions this weekend.
I don't remember exactly which versions I had installed before (...
1
vote
1
answer
66
views
How can I push a Git repository to a server where it doesn’t yet exist
I host my Git repositories at [email protected]. So when I want to create a new repository I have to do this:
ssh [email protected]
git init --bare ~/git/new_repo.git
exit
git clone [email protected]:git/...
1
vote
1
answer
7k
views
Git clone with ssh in docker image build
I'm building a docker image, and I want to clone a repository from bitbucket.
If I create a `debian' container and execute step-by-step, everything works fine. But when I try to create the image, it ...
1
vote
0
answers
206
views
git show on double click of commit hash in iTerm2
I am using iTerm2 with oh-my-zsh. git log --oneline shows me the git tree:
0b99548e commit A
eb980d4c commit B
e7e5e043 commit C
In order to view a commit, I need to do the following steps:
double ...
0
votes
1
answer
2k
views
Why does PowerShell's Install-Module fail for Posh-Git?
I have just tried installing Posh-Git from the PowerShell gallery by copy and pasting this command:
Install-Module -Name posh-git -RequiredVersion 0.7.1
The command seems to run fine, i.e. there is ...
1
vote
1
answer
225
views
Tuleap git pull request
In my Tuleap installation I don't see the Pull Request option with the git repository as mentioned in the user guide. what could be the problem ?
No Pull Request Option beside git URL
We don't want ...
1
vote
1
answer
3k
views
Using ssh-agent in windows git bash - Connection timed out
I'm trying to use ssh-agent in Windows git bash. I do
eval `ssh-agent`
it prints process PID, in task manager I can see that it indeed is running.
Then I do ssh-add -l. It thinks for some time and ...
1
vote
1
answer
455
views
How to upgrade Git through Chocolatey that I got when installing Cmder
I installed Cmder by running the following in an Administrative PowerShell:
choco install cmder
This also installed Git for me. But it installed an older version of Git, not the latest that is ...
0
votes
2
answers
1k
views
Why did deleting .git delete all tracked files?
I wanted to recreate a git repository. My understanding is that by deleting the ".git" folder, I could start from a fresh history. However, removing the folder seemed to delete all tracked files, ...
29
votes
2
answers
57k
views
How to "abort" merge in IntelliJ Idea
Let's say I am merging and just before the push I decide that I do not want to merge. Is it possible to get rid of the commits I have merged (and not pushed yet) without deleting my local branch or ...
0
votes
1
answer
2k
views
git status: fatal: .git/index: index file open failed: Unknown error 521
I try to do git status and get:
fatal: .git/index: index file open failed: Unknown error 521
Another variant of this, when I do git commit, is this:
fatal: could not open '.git/COMMIT_EDITMSG': ...
1
vote
1
answer
370
views
How to prevent that a ssh key that is used to perform git actions, is decrypted only once also when new terminals are opened subsequently on Windows?
Linux
On my Linux system, I decrypt a private ssh key every time when I boot the system. Once booted I open a terminal and issue:
ssh-add ~/.ssh/id_rsa_some_key
and I am ready to perform git ...
4
votes
1
answer
896
views
"Open with GitKraken" shell extension doesn't work
I installed GitKraken yesterday and it works fine. I also noticed that when I rightclick a folder in Windows Explorer, I have an "Open with GitKraken" option. But when I click that, I get a messagebox ...
0
votes
1
answer
60
views
how to get the tip: man git | grep
I am using a MacBook. i want to know the meaning of the option in git push --set-upstream [email protected]:de/Bee.git master .
I want to figure out the use of --set-upstream. I can google. And I am ...
0
votes
3
answers
444
views
Omit "git" from series of git commands
When I am working with git, I often find myself typing a series of commands that all begin with 'git' followed by various arguments.
Is there anyway to enter a 'git-mode' that will let me use all of ...
1
vote
1
answer
153
views
What should we do when we change a machine?
I have always been developing a big project in one machine. I use github to do version control. Now, I just got a new machine. I want to develop the project on the new machine. I am wondering what's ...
0
votes
1
answer
215
views
Cygwin... achieve a more reasonable installation?
I had seen this question from 2015 about a "minimal" Cygwin installation.
My main use for Cygwin is (currently at least) essentially git and a few very standard bash commands. I didn't know how I ...
6
votes
1
answer
22k
views
Can't delete branch SourceTree
I am using Github and also SourceTree. I have made a git clone of my project.
Now when I try to delete a branch I made local, I face the following error:
git -c diff.mnemonicprefix=false -c core....
4
votes
0
answers
134
views
Git - Limit number of revisions in advance?
I searched for the exact same term I titled this question with, but all I found were questions regarding the cleanup of git repositories which contain to many revisions of too many or especially too ...
1
vote
2
answers
626
views
How to tell if there _are_ any working copy changes in git
I use git diff --exit-code to color my shell prompt so that I can see if there are diffs in the working copy. On very large repositories, this takes a very long time, as long as git diff without the ...
2
votes
0
answers
1k
views
Allow Git in firewall
I'm on Windows 8.1 and I configured my firewall to, by default, block all connections from all applications, both inbound and outbound. Only few programs are allowed, such as Chrome, Firefox, Pip, etc....
2
votes
2
answers
955
views
how to see git log automatic refresh
I'm trying to create a script that would should me the git log and refresh every 1 second. This is what I have:
while :
do
clear
git log --all --decorate --oneline --graph
sleep 1
done
It's not ...
2
votes
0
answers
3k
views
Migrate SVN to Git, non-standard layout
I am trying to migrate our work SVN repository to Git. I am using the following library to assist with building the git-svn command.
The problem is our SVN repo is set out like so:
svn root/
...
0
votes
1
answer
343
views
.gitconfig not being generated in windows 7 machine
I have installed Git 2.15.1 64 bit on windows.
I then appended into 'PATH' system variable:
;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;
Then I try to ...
2
votes
2
answers
884
views
How can I see the proxy configurations of an SSH command in git bash?
I'm having issues with SSHing through a corporate proxy.
In my Windows environment - SSH works fine:
$ ssh -v [email protected]
OpenSSH_7.5p1, OpenSSL 1.0.2k 26 Jan 2017
debug1: Reading ...
1
vote
1
answer
710
views
Git clone, push and pull from multiple users on Ubuntu server
Background
I have a Linode server with Ubuntu 16.04 as on OS on it. The server is for my internal team. We have repos hosted on github, bitbucket and gitlab. Only server admin has the access to the ...
1
vote
0
answers
387
views
Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format
When I try fetch v8 or gclient sync I get this error:
Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/...
1
vote
0
answers
395
views
CUPS installing using repository
I want to get printer state from CUPS. To do that , I am trying to customize CUPS's source code. So I can send a message to my front-end.
I have downloaded CUPS repository from gitub Apple's Cups ...
0
votes
0
answers
3k
views
Git for Windows: grep returning nothing for any search
$ cat > test
something
[Ctrl+C]
$ grep something .
grep: .: Is a directory
Windows 10 Enterprise 2016 LTSB 64-bit
$ git --version
git version 2.13.2.windows.1
No matter what I search for it ...
2
votes
2
answers
5k
views
why does ssh to github require the git user?
I'm trying to run the following command:
ssh -vT [email protected]
I first realize it did not work (permission denied), because I don't have a public key saved on my personal github account. After ...
0
votes
0
answers
132
views
Public version control systems (e.g. Github, SVN) as file backup/cloud storage?
I have personal laptop on which I am doing my study works and personal projects and hence, some directories contain very valuable content for me like: 1) OpenOffice documents; 2) source code files, 3) ...
4
votes
2
answers
4k
views
Why is gpg-agent/pinentry not available when signing commits with git?
Currently, I am on Windows running git 2.15.0.windows.1, gpg 2.2.1, and gpg-agent 2.2.1. I am trying to sign a commit with git via pinentry/gpg-agent, however, when signing a commit via git, pinentry ...