G
G
Gyrocopter2016-04-14 03:01:46
git
Gyrocopter, 2016-04-14 03:01:46

How to backup site statics using .gitignore?

The bottom line is that in .gitignore those directories in which the upload is made (even if not so, but we will accept this convention). So, according to the rules from this file, files from the corresponding directories (ignore rules) would be backed up.
Who will offer what, colleagues? :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Selivanov, 2016-04-14
@selivanov_pavel

* Compare the output of git ls-files` and `ls -R`, back up the difference
* Rename `.gitignore` to `.gitignore.disabled`, back up `git diff` , rename back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question