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

  • Home
  • SEARCH
  • 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 644969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:27:03+00:00 2026-05-13T21:27:03+00:00

So I’ve got a local repository with two branches: master and shop . I’ve

  • 0

So I’ve got a local repository with two branches: master and shop. I’ve also got a bare repository, and a remote repository. I can push and pull fine between all of these, but there are some files that keep getting lost. I’m doing the following:

From my local root:

git push barereposerver shop

All is well. Whoo, we pushed there. And then from the remote root, after doing a git init and git remote add bare ssh://blahblahblah/blah.git, I’m doing:

git pull bare shop

But for some reason, I’ve got a few files that aren’t coming across.

I know I haven’t given much information, but I’m very new to git, and I don’t know the right terminology yet. I’d love for you to ask me some questions and see if you can help me through this one. Thanks so much!

Update: a sideways version of what I’m looking to do. I’m looking to get from other -> other, via a bare repo: http://droplr.com/wEB1q

  • 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-05-13T21:27:04+00:00Added an answer on May 13, 2026 at 9:27 pm

    From your diagram, it looks like what you have done is:

    • push to the bare (from local)
    • and then, from remote, register bare repo, and pull from bare

    “From my local root: git push bareserver shop”

    Which is:

    alt text


    the set that does not come through are a new group of files that exist on the local branch, but for whatever reason, do not get pushed to the remote branch

    Well, did you actually add and then commit those files, before attempting to push your local repo? (see this question for instance)


    From the comments, here is how we tracked together the root cause of this issue:

    Another way to troubleshoot is to note the SHA1 of the local commit (which contains your files) and the SHA1 of what you are getting on the remote side (after pulling from bare): if it is not the same, that explain the different content, but you can also search that SHA1 (obtained on remote) on the bare repo and on the local repo, to check to which commit that SHA1 (which lacks some files) refers to.

    Would that be this number? 591178c18126be127eaa417fa6b3be86c0fce969 If so, I get the same number on remote and local.

    A SHA1 is indeed such a number. If it is the same on local and repo, the content must be the same. Try (if you do not have any current modification on remote) a git reset –hard (again, on the remote repo); check first that you have the right branch checkedout in your remote repo)

    Side-by-side, the two results from git log:

    and side-by-side, the two folders with different files:

    if the SHA1 is the same, then the missing directories should not be part of the local commit.
    Try to clone your local repo in a second local repo and check if you see the same content in both local repos.

    Strange. When I cloned the local repo to another local repo, the files were missing again. I ran the clone command from the correct branch. Ideas why this would be?

    This is a side-by-side of the entire processes for cloning and displaying the different results:

    Right now, the fact that the directories are missing in a local clone is proof enough that those directories are not part of the local repo commits in the first place. Are those directories empty? (because even if added, they wouldn’t be committed)

    Yep, they’re totally empty.
    They’re directories that are originally created as empty but required for a WP plugin to be able to write to in order to add things.
    Per this SO question I can add a .gitignore gonna try that. Until this point, in two weeks with git, I’ve seen this documented nowhere. Seems like a big issue to be communicated so rarely, or am I missing something?

    This is actually an important design decision, part of what makes Git a file content management system (see Popularity of Git and Git versus SVN).

    Those directories, once added with a .gitignore in them, are now pushed/pulled successfully.

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

Sidebar

Ask A Question

Stats

  • Questions 325k
  • Answers 325k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'll trot out my favourite macro again here: #define ATHROW(… May 14, 2026 at 1:31 am
  • Editorial Team
    Editorial Team added an answer It should work if minimized - really minimized though, or… May 14, 2026 at 1:31 am
  • Editorial Team
    Editorial Team added an answer Could you not manually add a literal control into the… May 14, 2026 at 1:31 am

Related Questions

I want use html5's new tag to play a wav file (currently only supported
this is what i have right now Drawing an RSS feed into the php,
I have text I am displaying in SIlverlight that is coming from a CMS
I have a French site that I want to parse, but am running into
In order to apply a triggered animation to all ToolTip s in my app,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.