how to commit changes from my drupal site

Posted on 2013-09-18
Medium Priority
Last Modified: 2013-09-19
Dear experts,

I am trying to know how can I commit changes I made on my drupal site to my git repository.
For example today I created two pages, about and contact. when I when to terminal and wrote git commit -m "message" it says there is nothing to commit (working directory clean). So I wonder, how can I do it then? should I just commit the database? I am really confused, could could please help me?

Thanks in advance,

Question by:glepiza
  • 2
LVL 13

Accepted Solution

Aaron Feledy earned 900 total points
ID: 39504567
Drupal stores all of its content in the database, so your codebase wouldn't change when you add content. If you want the database to be part of your git repo, you'd need to export the database into your codebase.

See this module for a simple way to export your database from within Drupal:

Author Comment

ID: 39504671
oh, so the only changes i would have to commit are the ones I made to the js and css files right?
LVL 12

Assisted Solution

junipllc earned 600 total points
ID: 39504748
js, css, .tpl.php, module, etc. -- all of the code files can (and should) be versioned. You can also take advantage of the Features module to export most of the site's configuration into code. That's a bit more advanced, but it takes a lot of the configuration and "non-content" stuff and makes it versionable. And portable to other sites.

Author Closing Comment

ID: 39506189
thank you guys!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…
Watch the video to know how one can repair corrupt Exchange OST file effortlessly and convert OST emails to MS Outlook PST file format by using Kernel for OST to PST converter tool. It can convert OST to MSG, MBOX, EML to access them. It can migrate…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question