Result of lots of searching on net is that
hook in git is not implemented yet. The reason can be:
- There is no practical use. I do have a case
- It can be achieved by any other means. Please tell me how?
- Its too difficult to implement. I don't think this is a valid reason
Here my problem is:
I have implemented the
hooks for maintaining the database backup different for each branch.
: Now when I commit the backup of database is saved in a file using
hook. And when I checkout the the branch or merge occurs the database stored in file is restored using
hooks. Now the situation is if someone make changes in database after commit and checkout, the changes are lost, as database was not backed-up. The checkout succeeded as there is no change in file structure.
So in this case I want a
hook to handle the task of backing up database in above scenario.