How to retrieve the last modification date of all files in a Git repository

A simple answer would be to iterate through each file and display its modification time, i.e.: git ls-tree -r –name-only HEAD | while read filename; do echo “$(git log -1 –format=”%ad” — $filename) $filename” done This will yield output like so: Fri Dec 23 19:01:01 2011 +0000 Config Fri Dec 23 19:01:01 2011 +0000 Makefile … Read more

GIT as a backup tool

You’re not a silly person. Using git as a backup mechanism can be attractive, and despite what other folks have said, git works just fine with binary files. Read this page from the Git Book for more information on this topic. Basically, since git is not using a delta storage mechanism, it doesn’t really care … Read more

How to tell which local branch is tracking which remote branch in Git?

Using the example of my copy of Puppet checked out from the upstream Git repository on Github.com… $ git remote show origin * remote origin Fetch URL: git://github.com/reductivelabs/puppet.git Push URL: git://github.com/reductivelabs/puppet.git HEAD branch: master Remote branches: 0.24.x tracked 0.25.x tracked 2.6.x tracked master tracked next tracked primordial-ooze tracked reins-on-a-horse tracked testing tracked testing-17-march tracked testing-18-march … Read more

Wordpres core-update theme renames theme folder name

My first instinct upon reading this was that a WordPress Plugin may give you more control over this behaviour. Have you considered writing a plugin to pull and apply the updates? A quick Google on the subject found this: https://github.com/afragen/github-updater Any use? Likewise, reviewing their implementation may give you clues as to how to address … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)