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
14 views

Git Repository Error does not appear to be a git repository in windows 7

I am new in git. I am using git 2.17, Tortisegit 2.7 and windows 7 on both server and client when I am pussing to the remote repository I got error Connection reset by 10.15.15.236 port 22 and when I ...
1
vote
1answer
18 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}[...
0
votes
0answers
35 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
17 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
19 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
28 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 ...
80
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
24 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
1answer
24 views

How to get git auto-completion to work again (Ubuntu 18.04)? [closed]

My git auto-completion just stopped working after a recent update. I haven't touched anything in my bashrc file. Currently I have git-completion.bash in my home directory, and I have that file ...
0
votes
0answers
8 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
37 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
19 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
17 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
11 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
23 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
38 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
21 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
35 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
33 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
32 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
121 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/...
1
vote
1answer
23 views

Git Metadata Integrity Checks?

I was wondering today how well git ensures the integrity of its metadata and I am a bit surprised by what I encountered. I used the following simple setup for testing: Two working repositories, ...
2
votes
1answer
126 views

Uninstall git language on macos

The last brew update installed language support for my local language, so now git is a horribly bad almost unusable translation, and I want the english version back again. How do I do this?
0
votes
1answer
33 views

Git: Add new filename but not content

In my working tree I renamed a file/folder and modified its content. How do I add (and commit) only the rename but not the new content?
1
vote
1answer
25 views

Using git behind proxy server

There are many posts saying to add the proxy credentials to the git config file. Getting git to work with a proxy server But I think this stores the username and password in clear text in the config ...
0
votes
0answers
28 views

git-remote-gcrypt for remote shared between two hosts, 'secret key not available' errors

I'm trying to get the (2nd) simplest use-case working for git-remote-gcrypt, namely a shared remote on untrusted storage, which has read-write access from two personal machines (osx_box, ubuntu_box). ...
1
vote
1answer
20 views

Git list of Files with more than 'n' modifications of last commit with respect to current dirty state

With a huge repository, it becomes challenging to track changes. Github displays one statistic per file (total number of lines modified; includes add or deleted as well). Can we list that statistics ...
0
votes
1answer
49 views

Using git command without sudo on CentOS [closed]

I would like to use git without taping sudo everytime i tape a command on CentOS and i have no idea how to do it. I checked on google and i found this some command with chown but none of them worked ...
0
votes
0answers
16 views

How to prevent GIT Diff to compare similar lines distinct only by \r\n?

I would use GIT DIFF to compare change between 2 files. To do that, I use following command git.exe diff --ignore-all-space --ignore-blank-lines --diff-algorithm=minimal --no-index ./...
0
votes
0answers
9 views

Eclipse: How to add git folders to my parent project

To use Egit feature, I usually import git based folders to my Project explorer. Recently, I need to create an empty Project, then add different project folders to it via linking(New->Folder->...
0
votes
0answers
39 views

Make git NOT ignore other .git folders

Sometimes I want to try out things with git and/or change the structure of nested project (merge them to one repo or split them up etc). In these times I'd like to have a backup before doing so. ...
0
votes
0answers
19 views

git: Cropping the history and changing the author name while keeping tags, notes and references

Before publishing a project I would like to clean up the repository, which means: removing all commits older than a certain tag (but leaving the rest of the history and the current version as they ...
0
votes
0answers
31 views

git-http-push failed and returns code 22

I have server with Ubuntu 18.04 and apache2 web server. I want to host my git projects there and access them through http protocol. So I've created vhost, which works with following config: <...
0
votes
0answers
23 views

cmder using clink does not show git branch

When I tick "Use Clink in Cmder" in cmder settings, git branch names are not shown in cmder if I "Open in Terminal" the folder. If I untick it, it is shown, and the output is more colorful, as well. ...
0
votes
0answers
12 views

`git stash pop` stops processing remaining files due to a conflict

I want to get my changes out of a git stash, but for some arcane reason it just stops applying them when it encounters a conflict: ‰ git stash show | cat Makefile.inc.stm32 | 2 +- ...
0
votes
1answer
36 views

Warn before accidentally committing with `-a`?

I often commit with git commit -a. Then again, I sometimes stage individual files with git add and commit without -a. When I’m not careful it happens that I type -a by accident when I had previously ...
0
votes
2answers
173 views

How to configure zsh with oh-my-zsh to keep git history visible after pressing “q”?

I use zsh with oh-my-zsh on a daily basis but there is a small thing that bothers me. If I use git log or any other similar command then the output occupies full terminal window. After pressing q the ...
0
votes
1answer
17 views

Hosting git server lighter than gitlab without ssh [closed]

I have a lightly-resourced VPS running nginx and ssh. I can't afford to add more resources to it so that it can run gitlab (gitlab requires 4 GB of RAM). Until now I've been using it as a git server ...
-1
votes
1answer
37 views

Windows Powershell how to disable loading of an unwanted module [closed]

Just like in question, here are lines of code that I used that may have caused the problem. I was installing Git for powershell . (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1") . $env:...
0
votes
1answer
42 views

Git alias to cd into newly cloned repo

I have some useful git aliases that I use, mostly from here: https://haacked.com/archive/2014/07/28/github-flow-aliases/#the-list One thing I am missing though, is whenever I clone a repository I ...
0
votes
0answers
69 views

SSH & Windows 10: Connection Works With Powershell and Git Bash But Not With Other Tools

I have generated a pair of keys and have added the public key to my server. When I want to connect to my server I use the command: ssh [username]@[server]. This works fine when I'm using ...
0
votes
1answer
15 views

vim (vimdiff) errors before opening every file with git difftool

"~/Desktop/project/file.txt" [readonly] 81L, 2480C Error detected while processing command line: E344: Can't find directory "src/" in cdpath E472: Command failed Press ENTER or type command to ...
2
votes
1answer
27 views

Does “git mode” exist for bash?

Honestly, I'm not really sure how to put it, but here goes. Does anything like "modes" (git mode, for instance) exist for bash? What I mean is: I'm using git through bash on Windows. I have ConEmu ...
0
votes
0answers
93 views

Merge with Jenkins using pipeline

I try to merge branch ( master <-- newBranch ) with Jenkinsfile (pull request trigger) without conflict. When the Jenkins finishes running I get an error message on step3: "fatal: There is no ...
0
votes
1answer
40 views

Powershell command to backup all files except those which are unmodified in git source control

I have a work folder with many GIT and SVN repositories. Since the committed revisions are all available in the server, I just need to backup the unversioned files (modified but not committed, not ...
0
votes
0answers
27 views

How to run default version of start command?

I have installed Git and it provided different version of start command >where start D:\Apps\Git-2.10.2\usr\bin\start which does something different than default one. Is it possible to force ...
0
votes
1answer
25 views

How to track the password-store in git

I have started using pass, which creates a .password-store directory, with some .gpg files. Strangely enough: » git status On branch master nothing to commit, working directory clean Right after ...