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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:58:47+00:00 2026-06-03T02:58:47+00:00

I have a website file/folder structure template to start using with git . It

  • 0

I have a website file/folder structure template to start using with git. It contains an empty .gitignore file inside the images folder, which leads me to my two part question:

1.) Will this empty .gitignore file ignore all the images located inside the images folder, or was it placed there to allow the empty folder to be added to the repository before any images were placed inside?

2.) Should website images be included in a git repository? To me, image files are edited and altered just the same as other files, and it would be beneficial to keep track of said changes over time.

What is considered best practice? What do you do, and why?

  • 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-03T02:58:47+00:00Added an answer on June 3, 2026 at 2:58 am
    1. In your case, the .gitignore allow git to “see” the directory. It could be any other file. Git doesn’t store empty folder. You have to put this line into your .gitignore to tell to ignore all other files: !.gitignore
    2. There is no absolute response but I advise you to keep your images in the repository with the other files. Consider your git repository as your versionned website, images included. It will ease you if you want to automate your deployments. It will keep your website history consistent too. GIT handles images like any other files.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have file that is in folder in website folder structure. I use
I have a website which allows secure (ssl) file uploads and download. The site
I have cache static resources of my website using manifest file But when I
I have a website using asp.net mvc in which I need to embed a
Let's say that I have this website file root structure: frontend /home/username/public_html/ backend /home/username/public_html/admin/
I have a website that generates pdf file from CSP. Will this pdf file
I have a website that uses basic ASP.Net forms authentication. In the web.config file
I just edited an .SWF file I have on my website home page for
i have 2 file js in my asp website named 1-jquery.datepick.js 2-jquery.hijridatepick.js these file
I have a .htaccess file in the root of a website: /var/www/mywebsite/htdocs/.htacess and I

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.