Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

The solution of Jamie FlournoyThe solution of Jamie Flournoy works great. Here is a bit enhanced version to keep the .htaccess :

# Ignore everything in this directory
*
# Except this file
!.gitignore
!.htaccess

With this solution you are able to commit a empty folder, for example /log, /tmp or /cache and the folder will stay empty.

The solution of Jamie Flournoy works great. Here is a bit enhanced version to keep the .htaccess :

# Ignore everything in this directory
*
# Except this file
!.gitignore
!.htaccess

With this solution you are able to commit a empty folder, for example /log, /tmp or /cache and the folder will stay empty.

The solution of Jamie Flournoy works great. Here is a bit enhanced version to keep the .htaccess :

# Ignore everything in this directory
*
# Except this file
!.gitignore
!.htaccess

With this solution you are able to commit a empty folder, for example /log, /tmp or /cache and the folder will stay empty.

added 1 character in body
Source Link
GAMITG
  • 3.8k
  • 7
  • 35
  • 51

The solution of Jamie Flournoy works great. Here is a bit enhanced version to keep the .htaccess  :

# Ignore everything in this directory
*
# Except this file
!.gitignore
!.htaccess

With this solution you are able to commit a empty folder, for example /log, /tmp or /cache and the folder will stay empty.

The solution of Jamie Flournoy works great. Here is a bit enhanced version to keep the .htaccess:

# Ignore everything in this directory
*
# Except this file
!.gitignore
!.htaccess

With this solution you are able to commit a empty folder, for example /log, /tmp or /cache and the folder will stay empty.

The solution of Jamie Flournoy works great. Here is a bit enhanced version to keep the .htaccess  :

# Ignore everything in this directory
*
# Except this file
!.gitignore
!.htaccess

With this solution you are able to commit a empty folder, for example /log, /tmp or /cache and the folder will stay empty.

Copy edited.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

The solution of Jamie Flournoy works great, here. Here is a bit enhanced version to keep the .htaccess:

# Ignore everything in this directory
*
# Except this file
!.gitignore
!.htaccess

withWith this solution you are able to commit a empty folder, for example /log, /tmp or /cache and the folder will stay empty.

The solution of Jamie Flournoy works great, here is a bit enhanced version to keep the .htaccess

# Ignore everything in this directory
*
# Except this file
!.gitignore
!.htaccess

with this solution you are able to commit a empty folder, for example /log, /tmp or /cache and the folder will stay empty.

The solution of Jamie Flournoy works great. Here is a bit enhanced version to keep the .htaccess:

# Ignore everything in this directory
*
# Except this file
!.gitignore
!.htaccess

With this solution you are able to commit a empty folder, for example /log, /tmp or /cache and the folder will stay empty.

added 132 characters in body
Source Link
Roman
  • 2.6k
  • 2
  • 31
  • 53
Loading
Link to other answer.
Source Link
user456814
user456814
Loading
Source Link
Roman
  • 2.6k
  • 2
  • 31
  • 53
Loading