Tag: windows

Can I let git warn me when I try to add a file with a file name which is invalid on Windows?

I am developing on a Linux machine. It happened once that I added a file ‘sin(x):2.tex’ or something similar. This caused some trouble for a friend who uses a Windows system and wanted to clone my repository. I know there are much more invalid file names on Windows than on Linux. Is there a possibility […]

`gitk` program found using the `where` command but cannot be executed?

I’m trying to run gitk on Windows but the console gives me: ‘gitk’ is not recognized as an internal or external command, operable program or batch file. But then, I can do > where gitk C:\Program Files (x86)\Git\bin\gitk How comes?

Can Git bash be setup to not require me to type “git” for every command?

I’m running git bash in Windows and it’s a tad annoying to have to put in “git” for every command. I only run git commands in this bash window. Is there any way to get around this? EDIT: Ok, this is a pretty bad question because bash can be used for so many things, and […]

How to use cygwin paths in Windows git hooks?

(A) My .git/hooks/pre-commit is #!c:/cygwin/bin/bash.exe # /cygdrive/c/tmp/a.sh An error shows when I run ‘git commit’ .git/hooks/pre-commit: line 8: /cygdrive/c/tmp/a.sh: No such file or directory (B) If .git/hooks/pre-commit is #!c:/cygwin/bin/bash.exe # c:/cygwin/bin/bash.exe /cygdrive/c/tmp/a.sh The error becomes /usr/bin/bash: C:/Program Files (x86)/Git/cygdrive/c/tmp/a.sh: No such file or directory (C) But in cmd this can run c:\>c:\cygwin\bin\bash.exe /cygdrive/c/tmp/a.sh The question […]

Git fetch on windows waits before starting

I have a git repository that at a beginning works fine (or as good as one can expect on windows), but after 1 week (or so) the repo is getting slower, when I try to run git fetch (and any command using fetch). The terminal freezes for a few minutes and then the fetch begins, […]

msysgit 'submodule update' is excessively slow in windows 7

I have 5 submodules and a git submodule update takes 6-8 seconds. The same git submodule update command on the same repo in ubuntu 13.10 takes 0.4 seconds. In order to resolve this, I’ve tried everything listed in these two questions: Msysgit bash is horrendously slow in Windows 7 Git/Bash is extremely slow in Windows […]

Vim plugins not working with pathogen

I’ve got a computer with windows 7 in which I’ve recently installed Git (with Vim inside the Git directory). I tried installed pathogen and apparently it is installed correctly since there are no error messages with pathogen in autoload. My _vimrc is located in Users/Username which is $HOME and it the following is relevant to […]

Cannot clone from bitbucket due to missing public key

I’m using bitbucket and on my laptop I cannot use git to clone the repository. I’m getting an error: Permission denied(publickey). How can I fix this? I don’t remember setting a public key but if I did apparently it doesn’t work. (I’m using windows.)

directory created by GitBash doesn't appear in Windows explorer

Hi I’m working with GitBash to create a directory for my project, and then to clone the project from GitHub.com/… But the directory never appeared in Windows Explorer. To be detailed: I create a directory using mkdir TestForStackOverFlow I clone the project from GitHub.com using git clone https://github.com/udacity/Sunshine-Version-2.git but i can’t access this directory with […]

vimrc settings not working on git bash running in ConsoleZ

I’ve following vimrc settings for Python environment, that works fine if I open GitBash directly: ” enable syntax highlighting syntax enable ” show line numbers set number ” set tabs to have 4 spaces set ts=4 ” indent when moving to the next line while writing code set autoindent ” expand tabs into spaces set […]

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