Tag: windows

How do I execute a .bat from git bash and then return to the console?

I have created a goToProject.bat file with this content: cd C:\Dev\MyProject I want to run the goToProject.bat using Git Bash because i don’t want to manually go to the folder every time i have to use git in my project. To run the goToProject.bat from Git Bash i can do that: $cmd goToProject.bat Doing this […]

Error on git pull error : cannot open .git/FETCH_HEAD: Permission denied

I’m looking for help !! I am getting the following error message when trying to complete a git pull; C:\Jenkins\Repo> git pull error: cannot open .git/FETCH_HEAD: Permission denied The machine in question is Windows Server 2008 r2 OS and were using ssh to handle the authentication. We have tried the following; Checked that the current […]

Git: Internal error: refs/remotes/origin/master is not a valid packed reference

I am attempting to clone a git repository on a Windows network drive, but the process fails. It first throws a internal error: refs/remotes/origin/master is not a valid packed reference, and then repeatedly relates that it failed to unlink an index file. x:\code\source> git clone x:\code\repos\project.git Cloning into ‘project’… done. error: internal error: refs/remotes/origin/master is […]

Shell scripts with Git Bash 64-bit on Windows

I’ve installed Git Bash 2.5.1 64-bit on a fresh Windows 10 machine: mark@Foo MINGW64 ~/Documents/FsCheck (master) $ git –version git version 2.5.1.windows.1 When I list the contents of a directory, I can see a shell script: mark@Foo MINGW64 ~/Documents/FsCheck (master) $ ls appveyor.yml build.cmd build.sh* Docs/ bin/ build.fsx Contributors.txt examples/ FsCheck.sln (Some files and folders […]

How to set the correct local time zone in git bash?

I am using git-bash on a Windows system. The Windows clock shows local time, but inside git-bash everything is in GMT time: $ date Mon Mar 31 16:08:57 GMT 2014 Also setting TZ will not change things: $ TZ=”Europe/Berlin” date Mon Mar 31 16:09:01 GMT 2014 Similarly all times it git log are GMT only. […]

How to turn off git 1.7.8 overhead for binary files (.doc, .pdf, etc)

I used git 1.7.4 for working with large svn repo – it was ok. I updated to git 1.7.8, and now, when I do “git svn dcommit” git do some superfluous work. In task manager, I see that it do about 1M of writes (I am using SSD, so it worries me). It shows warrnings […]

Git for windows stopped working

Just overnight, all of a sudden my GIT for windows stopped working, for each repository. Every git operation ends with a dialog saying ‘Git for Windows stopped working’ (whether it’s from GIT bash, PowerShell or SourceTree): /c/Projects/Github/SignalR (master) $ git pull upstream master remote: Counting objects: 15, done. remote: Compressing objects: 100% (14/14), done. fatal: […]

Git on Windows not working with remote because of “SSL protocol” errors

tl;dr Git on Windows stops connecting to github because of mysterious “SSL protocol” errors. Halp! The Issue I’m developing on Windows, using a private GitHub repo for source control. When I first boot my system, I’m able to access the remote repo without issue – pull, push, fetch, etc. all work just fine. After some […]

Cannot remove git repository completely

I have been using git on windows-msysgit. Whenever I try to remove a repository completely either using explorer or using $ git rm -rf ptp/ fatal: Not a git repository (or any of the parent directories): .git it errors out “The data present in the reparse point buffer is invalid” or the fatal error above. […]

Atlassian SourceTree custom action contrast

After checking out a new branch, I wanted to stop tracking of files like .classpath via Atlassian SourceTree (Version I created a custom action with the details below: Then, from the “Working Copy changes” panel, I selected a file, right-clicked on it and tried to execute “assume unchanged” custom command. However, I got this […]

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