I really miss tortoise svn on Windows XP. Since i use Mac, i gotta get used to it with terminal. I source out some subversion client and plugin, no luck for it. Ok, lets run through what i found out. First of all to get subversion running on your mac, you need to install it first. Get the installation from Subversion Mac OS X or get the latest version of the source code and then compile it yourself (this link). Set the path in your .profile or .bash_profile:
# svn command located at /usr/local/bin/svn, so set the path in your profile: $ vi ~/.profile $ export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
Next, if you not comfortable with command line, below is the subversion clients availabe for mac:
- SCPlugin - Integration with Mac OS X Finder. Download .dmg file here.
- svnX - Recommended
- SmartSVN - Recommended (Commercial - US$69)
- rapidSVN - Multi-platform Subversion GUI
- ZigVersion - Not recommended. Still early phase of build. Maybe will mature in future.
Assemble of tortoise svn but it sometime crash my Finder. Not recommended for Intel Mac. Just refer to this link for the binary and source (not the official site, but it work). After getting the binary, copy SCFinderPlugin.plugin to ~/Library/Contextual Menu Items/ and relauch your finder by ⌘⌥⎋ choose Finder and relaunch. The subversion contextual menu (with right click) will show up.
A cool GUI client for Mac OS X. Even work with Tiger and Mac Intel. You need to put a little effort to understand how it work to foster your coding. I am using this, in fact.
Similarly to svnX with a simple interface and tree directory structure.
Site which help you to understand more about subversion in mac os x? Click here.
Note for rails developer: Assume you have read above article link, and have set up your own svn for your rails application. Few things you need to note down for rails application below: (do these!)
$ cd ~ $ svn checkout svn://(your svn server)/(your rails application directory) $ cd ~/(your rails application directory) $ svn remove log/* $ svn commit -m 'remove logs directory in the version control' $ svn propset svn:ignore "*.log" log/ $ svn update log/ $ svn commit -m 'in the repository also log files either' $ svn move config/database.yml config/database.example $ svn commit -m 'rename database.yml to database.example' $ svn propset svn:ignore "database.yml" config/ $ svn update config/ $ svn commit -m 'ignoring any commit to database.yml'
In the case of you need to get the source from svn without .svn folder (without svn linkage), do:
$ cd ~/(your svn working directory)
$ find . -name .svn -exec rm -rf {} \;
# OR #
$ cd ~/(your svn working directory)
$ svn export svn://(your svn server location)/(your application directory)
Both way serve some purpose. Try to find out yourself whats the hidden purpose.
Cheer!
Reference: