Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8746479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:12:02+00:00 2026-06-13T12:12:02+00:00

To be more precise, I believe git clone succeeds, but immediately deletes all the

  • 0

To be more precise, I believe “git clone” succeeds, but immediately deletes all the files in my resulting local repo. A similar question can be found here, but I couldn’t think of a way to phrase my twist on the question as an answer, so here I am.

Here’s the rundown on the specifics of my scenario:

I have a repository on github. I am able to clone this repository as anyone would expect using git on Ubuntu 12.04. The problem arises when I try to clone the wiki (github makes this accessible via https://github.com/<owner>/<repository&gt;.wiki.git). My resulting local copy is empty. Upon running “git status” I notice that the contents of the repo were deleted by some entity immediately after cloning.

On branch master

Changes to be committed:

(use “git reset HEAD …” to unstage)

deleted: <filename>

…And so on for all the rest of the pages in my wiki.

“git branch -a” returns the same thing for me as for the other guy:

*master

remotes/origin/HEAD -> origin/master

remotes/origin/master

update 1

It’s true I was not aware of the difference between the staging area and the working directory, but it seems that was not the issue. On the other hand, it may have revealed a bit more of what is wrong.

I forgot to mention that when I first clone the repository, I get the message “cannot stat <long_filename>: filename too long”

When I run “git reset” all of the deletions are listed under “unstaged changes after reset:”. The odd one out is <long_filename> which is listed as a merge instead of a deletion. Still, no files are visible in the directory I cloned to after the reset.

update 2

I can view all the wiki entries that should be present by using gitk from the cloned folder, but I am quite certain that the files are not present in a raw format anywhere on my filesystem, otherwise “find / -name <filename> 2>/dev/null” should return some useful output.

update 3

Apparently one of my filenames is too long for git to manage. Checking out the repo again after cloning it got all the files but that one:
error: unable to create file <filename>.md (File name too long)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:12:03+00:00Added an answer on June 13, 2026 at 12:12 pm

    git checkout . should discard all local changes since the last commit, reverting you back to a clean state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's too late to change the question, but more precise would have been to
I'm using NHibernate 3 with SQLite 3 (to be more precise - SQLCipher but
I normally like to ask much more precise questions but in this one I
Sorry about not being able to give a more precise headline, but here is
Sorry about the strange title, I honestly tried to make it more precise but
Code is much more precise than English; Here's what I'd like to do: import
i installed GWT using Eclipse wizard to be more precise, i followed this tutorial:
Or, to be a little more precise: which programming languages are defined by a
I'm struggling with a particular rewrite rule on apache. More precise, I'm struggling to
Is there an elegant way to make whitespace string. To be more precise, I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.