Installing git is always a simple procedure, but with MacPorts, it becomes a one line Unix command. I also want to set some key configuration settings for git.
markf$ sudo port install git-core markf$ git config --global user.name "Mark Fenoglio" markf$ git config --global user.email markf@istarelworkshop.com markf$ git config --global color.diff auto markf$ git config --global color.status auto markf$ git config --global color.branch auto
The first two git config commands set important defaults for identifying the author of changes to the repository. The last three commands are to provide color when git presents information in the console.
Istarel Workshop Frameworks
I intend to eventually migrate all my projects to git, but I want to start with the Istarel Workshop frameworks. This will give me a chance to establish some best practices, particularly with respect to deployment. Before I start, I want to remove all of subversion's hidden directories.
markf$ cd ~/Sites/fw markf$ find . -type d -name '.svn' -print0 | xargs -0 rm -rdf
Now I am ready to establish the git repository for my frameworks.
markf$ git init
Initialized empty Git repository in /Users/markf/Sites/fw/.git/
All that I've done at this point is create an empty working directory. Now I need to populate my local repository with the initial snapshot of the project.
markf$ git add . markf$ git commit
When the commit happens, an intermediate file is opened in your designated editor and you should create the commit message there. When that temporary file is saved, git saves the initial version of my project.
