top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Git pull silently removing files in the index

0 votes

I think there's a bug in git pull. Doing a git pull in a fresh repository without any commits removes files in the index.


$ mkdir foo
$ cd foo
$ git init
$ touch file1 file2
$ git add file1
$ ls
file1 file2
$ git pull master
$ ls

"file2" is still there, but "file1" was silently removed and no error message was shown.

I'm running git

posted Jun 17, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

I was wondering if there are any install flags for git to be installed silently and to be able to pre-choose the install options to make it completely silent? Using the standard /S flag for the .exe just seems to launch it as normal.

+1 vote

There's a challenge that i'm currently facing after migration from WINCVS to GIT. The problem here is I need to pull/fetch a specific branch (and NOT clone the entire repository) from the repository to a particular location on the AIX server.

Earlier while using WINCVS this functionality was achievable using JCVSExport package as we could just checkout a particular branch and fetch the package on to the server location.
WINCVS Command : java JCVSExport -h -u abcde -p xxxxxx -d /abcd/cvs/testing -c "$REPOSITORY" -m "$PACKAGE"

I am not able to achieve the same functionality using GIT. I DO NOT want to clone the entire repository on the AIX server instead I just want to fetch/pull a specific branch contents on the server. Can someone please help me out with the solution or any possible way with which I can achieve the same functionality.

+1 vote

Is there a place record when I run "git pull" the last time.