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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:03:20+00:00 2026-05-22T20:03:20+00:00

Possible Duplicate: Git – Whitelisting files in a complex directory structure I have a

  • 0

Possible Duplicate:
Git – Whitelisting files in a complex directory structure

I have a project called Basic PHP Framework – alpha and it have some files on root dir.

When I need to apply the FW in some project, I just need to use dirs basic (or file basic.phar), application and files index.php and .htaccess. All other files are for debug purposes.

Here start the “good thing”: I want work on projects based on this FW with Git version-control, because sometimes I need do a emergency change on this files and, currently, I need EVERYTIME copy manually to project dir (/basic) and sync. It’s so annoying. The same if I need update project using git.

My idea is something like sync GIT using specific directories and ignoring all others that not interest me, on each project.

It’s possible, currently?

I’m new here, and I don’t know if here is the right place to post this kind of question. Feel free to move to another “stack-place”.

  • 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-22T20:03:20+00:00Added an answer on May 22, 2026 at 8:03 pm

    You could add a .gitignore file in the project directory to blacklist/whitelist any file you don’t want git to bother tracker, e.g.:

    *
    # ignore every file by default
    !.htaccess
    # but don't ignore .htaccess
    !basic
    !basic/*
    !basic/*/*
    # don't ignore the 'basic' directory (and 2 levels below)
    !index.php
    # etc.
    

    (It’s easier to setup a blacklist if “All other files for debug purposes” have some common pattern.)

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

Sidebar

Related Questions

Possible Duplicate: Using Git how do I find modified files between local and remote
Possible Duplicate: Viewing Unpushed Git Commits How do I list all commits which have
Possible Duplicate: Restore a deleted file in a Git repo I have two branches
Possible Duplicate: How to quickly set up Git for teams using Xcode? I have
Possible Duplicate: comparing contents of two files using python I have a file name
Possible Duplicate: How to create comma separated list from array in PHP? I have
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Possible Duplicate: git push error '[remote rejected] master -> master (branch is currently checked
Possible Duplicate: Using Git with Visual Studio What's the most painless way for the
Possible Duplicate: Merging: hg/git vs. svn Hi, I'm a long time SVN user and

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.