Saturday, September 19, 2009

Setting Up a Repository

To setup an SCM repository on Mac:

mkdir -p /Users/Shared/Subversion/MyProject
cd /Users/Shared/Subversion

Make sure the repository will be readable, writeable, and listable for all users:

svnadmin create MyProject
chmod -R a+rwX .
ls -l MyProject

Create subversion configuration directory:

ergun-coruhs-imac:Subversion ergun$ svn status
svn: warning: '.' is not a working copy
ergun-coruhs-imac:Subversion ergun$ 

The default configuration file is now at .subversion/config in your home directory. You must edit config file to exclude binary files (such as build/*) out of SCM repository. However .subversion is a hidden folder. You must make .subversion folder visible first to locate and edit the config file.

Inside config file, uncomment this line, and add the following wildcards to exclude them from SCM:

global-ignores = ... build *.nib *.so *pbxuser *.mode *.perspective

Uncomment this line:

enable-auto-props = yes

Add these to the [auto-props] section at the end of the config file:

*.mode* = svn:mime-type=text/X-xcode
*.pbxuser = svn:mime-type=text/X-xcode
*.perspective* = svn:mime-type=text/X-xcode
*.pbxpoj = svn:mime-type=text/X-xcode

Save and exit.



Showing hidden files in Mac

 Launch Terminal, and run these commands

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

Entering the two lines above into Terminal will allow you to use the Finder to display all of the hidden files on your Mac. The first line tells the Finder to display all files, regardless of how the hidden flag is set. The second line stops and restarts the Finder, so the changes can take effect. You may see your desktop disappear and reappear when you execute these commands; this is normal.

How to recover from Mac Book Pro catastrophes

Synopsis DISCLAIMER: This article applies to Intel based MacBook Pro 4th generation models with a Touch Bar (2006-2020.) The methodology giv...