Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Folders to .gitignore during version control

Started by Muut Archive 11 years ago · 1 replies · 504 views
11 years ago

I have built a documentation website I'd like to access and sync (through a private git repo) with several local computers. Do you know what folders do I need to ignore in .gitignore to keep a "plug and play" setup? Do I need to uncomment the following folders?

TXT
assets/*
logs/*
images/*
user/data/*

Furthermore, do you know if it is safe to ignore node from the root .gitignore like this? Or should I rather add a .gitignore inside the /user/ folder so that I don't accidentally remove important vendor folders?

TXT
**/dist/
**/node_modules/
👍 1
11 years ago

It really depends what you want to store in GitHub. Theoretically you could store the entire Grav site that could be pulled and just 'run' wherever you pull. Or you may prefer to only store the user/ folder. That way you can install Grav independently everywhere and then just pull the user/ folder which should contain you theme, plugins, content, images, etc.

In short there's really no one solution, it's what ever you want to do :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1329 9 years ago
Archive · by Muut Archive, 9 years ago
2 922 9 years ago
Archive · by Muut Archive, 9 years ago
2 4051 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1108 9 years ago