Posts for git

Αναβάθμιση wordpress με git

Ανάμεσα στα άλλα κάνω maintain το wordpress blog που έχουμε στο Ιδεόπολις. O κώδικας του blog έχει το δικό του branch μέσα στο git αποθετήριο του wordpress.

Αυτό πρακτικά σημαίνει ότι κάθε αναβάθμιση (όπως η τελευταία security release 2.6.5) είναι μόνο τρεις εντολές:

     $ git fetch origin
     $ git checkout my_blog
     $ git rebase 2.6.5 (non-conflicting)

git coolness

I am using git to track my home directory, using a branch for every pc I use. Tracking large directories like home can be quite annoying: git status for example will try to stat every file for changes, and produces a 3-4 page output where all the useful information is 3 pages up from your cursor! The same happens with git commit editor.

Luckily, git supports status.showUntrackedFiles option.

git config status.showUntrackedFiles no saves the option to you .git/config file. The results:

$ git status|wc -l
240
$ git config  status.showUntrackedFiles no
$ git status|wc -l
7

Nice stuff :)