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 6665883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:46:12+00:00 2026-05-26T02:46:12+00:00

I have an issue with a new remote repository that when cloned using Tower,

  • 0

I have an issue with a new remote repository that when cloned using Tower, doesn’t clone all the directories.

When I created the remote repository, I did the following:

  1. Created a .gitignore file containing the following line

    files/cache/*

  2. Then ran:

    git init
    git add .
    git commit

  3. I then cloned the remote repository to my local machine using a Mac OSX git client called Tower but noticed that many of the directories did not clone.

When I go back and look at my terminal session on the webserver, I can see the directories that weren’t cloned listed after the initial commit – I see a whole bunch of lines that look like this:

create mode 10644 directory-name/path/to/file.php
create mode 10644 directory-name/path/file.php
create mode 10644 directory-name/path/to/file.php
create mode 10644 directory-name/path/file.php

So I’m guessing they were added but I’m also wondering if my .gitignore file is not setup right and is conflicting with Tower somehow?

I tried the .gitignore file a couple of ways, firstly like this:

files/cache/*

then like this:

files/cache/

After changing it to the second one, I ran git add -A (which didn’t seem to add anything new) on the server and pulled the repo down using Tower again – but no luck.

Not sure if this is Git or Tower or both – not sure what I’m doing wrong, sorry.

Any help would be much appreciated.

Cheers

Ben

  • 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-26T02:46:13+00:00Added an answer on May 26, 2026 at 2:46 am

    Don’t forget that git won’t add (and clone) empty directories.
    (or directories with ignored content, making them empty for Git)

    See:

    • “Does git ignore empty folders?“
    • “How do I add an empty directory to a git repository?“
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just new to programming in Unix and have a small issue that
I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
I have an issue that is driving me a bit nuts: Using a UserProfileManager
I have some strange issue using jQuery Validation plugin. Firs of all here is
I have an issue with .Net reflection. The concept is fairly new to me
I'm fairly new to SVN and I have a weird behavior issue. I'm working
I am new to MVC and facing one issue. I have a xml file
I have a WPF sorting/binding issue. (Disclaimer: I am very new to WPF and
I m new to use ankhSVN and having issues. I have created some new
We have an issue using the PEAR libraries on Windows from PHP . Pear

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.