0

I was using Git shell for pulling data from GIT through (GIT pull) command.

But I am having some problems while pulling the data because of showing the message "as file too long".

while creating another separate clone I get the following error message:

fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.

So can we "GIT PULL" or "GIT PUSH" through cygwin and if yes can anyone share the steps ?

Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186
Deb
  • 49
  • 7
  • Are you using Windows or Cygwin GIT client? – AlG Jun 11 '15 at 19:23
  • Are there any particularly large files in the repo? – Keith Thompson Jun 11 '15 at 20:28
  • yes there are some large files in the repo... @KeithThompson. – Deb Jun 12 '15 at 04:08
  • @AlG yes i am using Windows client..But i want to use Cygwin client.. – Deb Jun 12 '15 at 04:26
  • As Adam says below before you can use Cygwin's client you have to install it and be sure it comes up in your Cygwin path first. I'd try the Cyg git client before debugging further - remove that possibility. – AlG Jun 12 '15 at 10:55
  • Just today I tried to create a large file on a FAT32 file system (a USB thumb drive). The process died when the file reached 2**32-1 bytes (2 gigabytes). Apparently FAT32 can't store files bigger than that. Are you using a FAT32 file system? (I think you should be able to convert it to NTFS.) – Keith Thompson Jun 12 '15 at 17:22

1 Answers1

0

It can be done. I don't know what your issue is, but I can tell you that I can use git in cygwin just fine.

  1. install git in the cygwin setup installer
  2. setup your git config. at a minimum, that means you'll need to open a bash prompt and type:

    1. git config --global user.name [your name]
    2. git config --global user.email [your email]
  3. clone (i.e., git clone [repo])

Adam R. Grey
  • 1,861
  • 17
  • 30
  • The problem was solved while installing Cywin i didnt import GIT packages.So after importing the git packages it worked. – Deb Jun 30 '15 at 11:29