Thursday, November 10, 2011

first rule of GIT

Yep, GIT rocks!
I just had to do some search and replace on a local version of a static website and I needed a way to quickly version my changes as the muti-file search and replace in TextWrangler cannot be reversed. GIT to the  rescue. I just made a local git repo of the website, a first commit, the search and replace and another commit.
Brilliant!
I was able to make a backup before the search/replace using git archive and after the commit I used my old git diff script to export the changed files to a different folder. So my first rule of GIT is:
GIT is first and foremost a tool for you and _your_ code!

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home