Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
13 views

Can't run git in windows 8.1 “The application was unable to start correctly”

I downloaded and installed git 2.20 (64 bit) for windows from https://gitforwindows.org/ I have a windows 8.1. After I installed it, it can be executed in bash or windows power shell. However, it can'...
1
vote
1answer
22 views

Exclude single executable from path

I have a small problem with my path environment on windows 10. I'm running CLion, which uses CMake, and it spits out this error: sh.exe was found in your PATH, here: C:/Program Files/Git/bin/sh....
-1
votes
2answers
19 views

Having difficulty uninstalling git from Windows computer

Whenever I attempt to uninstall git from the control panel, I get this error message: Problem is, I don't know where I can download this file: unins000.exe. Can anyone help me?
0
votes
0answers
5 views

How can i remove http proxy server mac terminal?

when i run this command system_profiler SPNetworkDataType | grep "HTTP Proxy Server" | awk '{print $4}' | head -1 the result is 10.0.48.243 10.0.48.241 or when i try to install homebrew with ...
0
votes
0answers
11 views

How to handle bit rot in git repositories?

As confirmed by this question, git does not automatically protect against bit rot. There was a link given there for a git file system check, but it's not obvious from that what my backup strategy ...
0
votes
0answers
10 views

How to add ~/.zshrc file into git?

I would like to create a backup of the .zshrc file in my ~/ directory and avoid versioning all other items. How to exclude all subdirectories and their content? For example: cd ~/subdirectory/ &&...
0
votes
1answer
12 views

TortoiseGit occasionally is not able to reach git.exe

Occasionally when performing git operations with TortoiseGit I keep running into various failures randomly, wherein if I retry it once or twice afterward it will succeed in performing the same ...
0
votes
0answers
27 views

How can I sign this Google CLA and get my PR accepted without having to re-commit my changes?

I fixed an issue for an open source project and am required to sign this CLA before the PR can be merged. A repository owner has approved the PR, but the CLA isn't showing as signed. Details I use ...
0
votes
2answers
89 views

SSH - How to add host to ssh/known_host file

The known_hosts file looks like this :- [localhost]:8001 ssh-dss AAAAB3NzaC1kc3MAAACBAP1/U4EddRIpU [10.18.60.198]:8001 ssh-dss AAAAB3NzaC1kc3MAAACBAP1/U4EddRIpUt9 // key are trimmed at the end ...
1
vote
1answer
49 views

How can I fix the error “fatal error - cygheap base mismatch detected” when using git on Windows 10?

When using git on Windows 10 (1803), some commands give the following error: git submodule add https://github.com/..../......git ...... 3 [main] basename (13656) C:\.....\basename.exe: *** ...
0
votes
0answers
48 views

synchronize cygwin installed packages between multiple machines

I have 4 machines that I'm trying to keep in sync ie. same settings and installed packages. Is there a folder that I can add to a repo and use git to keep in sync so that i can guarantee consistency ...
1
vote
1answer
44 views

How can we get a git gui client that does proper image diff?

We're just starting a project (Unity based) and are using git (we've used SVN in the past) on Windows 10 and MacOS. We're currently using Sourcetree as our client, though we're open to use over ...
0
votes
2answers
62 views

How to set up SSH key for git on Windows 10 Ubuntu subsystem

I'm using the ubuntu bash (subsystem) on windows 10 as my shell. I have a gitlab git repository that I cloned. When I use the git from this shell it is separate from my windows git and I'm unable to ...
4
votes
1answer
103 views

Git auto update prompting for old version

C:\Users\phill>git --version git version 2.19.2.windows.1 C:\Users\phill>git.exe update-git-for-windows Git for Windows 2.19.2.windows.1 (64bit) Update 2.19.1.windows.1 is available Download ...
0
votes
1answer
49 views

What does the name after the colon in GItHub ssh address mean?

For example, git@github.com:JohnCoates/Aerial.git in this command, I think git: username in GitHub Unix server github.com: host name /Aerial.git: directory . So, what is :JohnCoates? Generally, ...
0
votes
1answer
39 views

How can I fix this error when trying to install Oh-My-Fish?

I am using fish via Cygwin on Windows 10; whenever I try to install OMF, I am presented with this error: curl -L https://get.oh-my.fish | fish.exe % Total % Received % Xferd Average Speed ...
0
votes
0answers
14 views

git repository in pcloud synced folder keeps changing files

I've made the switch from Dropbox to pCloud recently due to their lack of support for some filesystems. I've been sharing working git repositories via the cloud with my other machines. Only one ...
0
votes
2answers
23 views

On Mac OSX, is there a means by which I can have git without XCode?

...or is that a license violation or something? Our network is dog slow and XCode is bloody huge and we don't even use it.
1
vote
1answer
44 views

How to install zsh on git for windows

git for windows comes with a terminal with bash on it. Is it possible to install something on it, if yes How can i install zsh on this terminal?
0
votes
0answers
29 views

tar extraction does not complete git bash windows 10

Recently my Windows 10 install was corrupted (cause unknown) and the only method I was able to use to fix the issue was to backup my important files (everything in /Users/foo) to foo.tar.gz on a ...
0
votes
0answers
11 views

Avoiding committing of global config to git

Repost of https://stackoverflow.com/questions/53233742/avoiding-committing-of-global-config-to-git I am writing a deployment script in order to parameterize (and eventually hook) a deployment to a ...
1
vote
0answers
77 views

GIT For Windows - Failed to receive handshake, SSL/TLS connection failed

There have been many questions asked on this subject but none of them have a definitive answer. I am developing in Visual Studio 2017 (v15.8.5) on a company network, behind proxy with my Git ...
0
votes
0answers
13 views

Can git conditionally pick an email from the global git config based on host?

I have a github.com account and an enterprise github account, and would like git to automatically use the corresponding email for each one, so that I don't have to run git config user.email "blabla@...
0
votes
1answer
10 views

Make cmd-click on a file name in iTerm add that filename to the command

By default, iTerm lets you cmd-click filenames and urls to open them with the system's default app. I want to be able to change that so it adds the filename to the command I'm currently typing. This ...
0
votes
0answers
18 views

How to rebase a branch from previous fork in one command?

So I'm trying to come up with a ZSH alias for Git that will rebase my current branch onto the branch it was originally derived (forked) from. Examples: Given the following branch names of A and B. ...
1
vote
3answers
89 views

Does the .git folder actually contain your files?

In theory, if you backed up just the .git folder in a flash drive and some rouge user deleted all your project files in your PC, can you still restore your files from that .git folder in your flash ...
-1
votes
1answer
23 views

Can you use Git Bash to remove folders/files from your computer?

I'm new with Git Bash, but I've had some experience with it before. However, my sister has a folder/file on her USB that I can't seem to get rid of by right clicking and saying "delete" or by using "...
0
votes
0answers
22 views

Bitbucket showing commit that git clients does not

I am having issues with a remote git commit that won't be pulled. Pull from remote using git extensions or source tree. Viewing it there won't show the commit. Branch is up to date. Viewing in ...
2
votes
1answer
44 views

Insert date and tag name into LaTeX source files with git

I'm using git for writing some LaTeX packages. To be able to make use of LaTeX release features, a string of the following format needs to be included in each package: \ProvidesPackage{MyPackageName}[...
1
vote
0answers
52 views

On Linux Samba share accessed from macOS, macOS has weird file permissions

The things I changed in my smb.conf on my linux machine are: unix extensions = no map archive = no map system = no map hidden = no [myshare] path = /home/bob/myshare browseable = yes read only = no ...
0
votes
2answers
19 views

How do you upload a change to an existing file on Gitlab via the web interface?

Referring back to the answer of How do you upload a file on gitlab via the web interface?, how do you upload a new version of a pre-existing file on Gitlab, via the web interface? When I select Upload ...
1
vote
1answer
53 views

Delete a branch named <U+0096><U+0096>DEV- in Git-for-Windows shell

I renamed a branch to a name copied from Firefox and pasted into the Git-for-Windows shell (MinGW64) and now branch is named <U+0096><U+0096>DEV-. Afaik the leading <U+0096> ...
0
votes
1answer
36 views

Sometimes git includes the diff to commit message when using verbose

I am using git version 2.16.2 on macOS Mojave (but I've seen this on other versions too) and I am observing a strange behaviour of git commit -v. Sometimes when I write my commit message and close ...
84
votes
5answers
9k views

Using Git across multiple systems without network access

I want to use version control but, due to security reasons, the server I'm working on has no internet access: I can only move files on a USB flash drive. Can I still use Git with this setup? Can I ...
0
votes
1answer
25 views

how to create a the following bash script alias for git based deployment

i would like the following deploy dev to be alias to git checkout deploy/dev && git merge master && git push so that dev is a parameter. thanks!
0
votes
0answers
11 views

Pycharm not showing full git console

when performing git pull on the terminal, I see the progress of the operation: remote: Counting objects: 176, done. remote: Compressing objects: 100% (119/119), done. ... On the Console tab of ...
0
votes
0answers
90 views

Windows git “bad file descriptor” while commiting on OES Network Share

Upfront: I don't have much experience with Windows and hardly any with coorporate networks. I'm trying to use git for version control during the development of my software. The company I work for is ...
1
vote
1answer
21 views

No output from FOR loop over command

I've got some files I just committed in my git repo: C:\core\guidewire\Release\5.3_MT1\ClaimCenter>git diff --name-only head^^ ClaimCenter/modules/configuration/config/web/pcf/TabBar.pcf ...
0
votes
0answers
45 views

Git for Windows Installation: Curl is not working?

I was following this step-by-step instruction (and I did everything as written there) and at the step 5 when checking Curl with curl --versionI got 'curl.exe' is not recognized message. Why? What ...
0
votes
0answers
13 views

Why my Tectia and Git console have such wired behavior which make me copy content from console

Why my Tectia and Git console have such wired behavior that after selecting content in the console, it will jump to the new line like the control+C have bee pressed after the mouse release? I uploaded ...
1
vote
1answer
40 views

Plink does not work with commands file for git in sudo

I use plink.exe for automatisation of git commands and this works fine. But i need to use this with servers with login of sudo plink.exe -ssh argentium@186.118.154.164 -m commands.txt my commands....
0
votes
1answer
17 views

git in cmd wrongly uses cygdrive

I'm on Windows 10 and installed Git git version 2.19.1.windows.1. I cd into a folder D:\Webs\bildresize2 that's a git repo and call git fetch. I get the error: fatal: 'C:/Program Files/git/cygdrive/...
1
vote
1answer
238 views

How to run a program in git-bash.exe in a new window

When I run the program /c/Users/PetrKrysl/AppData/Local/Julia-1.0.1/bin/julia.exe in an open git-bash.exe window, it runs fine.  However, I'm not able to start a new window with git-bash.exe /c/Users/...
0
votes
1answer
27 views

What is an appropriate value for git-daemon's --timeout option? [closed]

The git-daemon page has this to say: --init-timeout=<n> Timeout (in seconds) between the moment the connection is established and the client request is received (typically a ...
1
vote
2answers
23 views

How can I force git to prompt me for the email address to use, if not set in the repo config?

Let's pretend I am a contractor that occasionally works on 2 projects simultaneously, (one might be maintenance, one might be in development) Occasionally I have to work on a new repository, and I ...
0
votes
1answer
44 views

How to perform application-consistent backup of Git repo

Imagine I have a bare Git repository on my own hosted server that is used by multiple folks for cloning, pushing, and pulling. What commands would be necessary to get such a repository into a state ...
1
vote
1answer
45 views

How do I get/copy a password from kwallet

My experience with kwallet (for those of us running KDE) so far is it's the thing that pops up to receive passwords for git. At this point I promptly type my password in the username field because it ...
0
votes
0answers
92 views

Windows Subsystem for Linux Ubuntu: ssh-agent running but ssh-add complains “Could not open a connection to your authentication agent”

I use WSL with Ubuntu on my laptop to develop on Linux while I'm away from my desktop (with native Linux, where I don't experience any problems like this). I have private git repo setup, and I use ssh ...
44
votes
4answers
3k views

Cache the password if SSH-keys are forbidden

I have a server which I have to access frequently via ssh, because I compute on it. Now, the computing center explicitly forbids SSH-keys because they are "insecure". They feel that typing my password,...
-3
votes
1answer
146 views

What distros are NOT affected by the new Code of Conduct? [closed]

What distros of Linux or Unix based operating systems are NOT subject to the new code of conduct recently implemented for Linux? And/or which use no code affected by this CoC? https://git.kernel.org/...