Import SVN repository to Git

Apr 5, 2012 by

To import an SVN repository into git, you can use the git svn command.

If you want to just import your SVN repository into Git as is, you can run the following sequence of commands:

$ git svn clone SVN_REPO_URL LOCAL_DIR
$ cd LOCAL_DIR
$ git remote add origin git@example.com:USER_NAME/REPO_NAME.git
$ git push origin master

If you repository is setup in a standard way and you want the git svn command to be smart about it, you should add the -s flag to the first command:

$ git svn clone -s SVN_REPO_URL LOCAL_DIR
$ cd LOCAL_DIR
$ git remote add origin git@example.com:USER_NAME/REPO_NAME.git
$ git push origin master

Which basically says to git svn that your repository is in a standard layout.

read more

Share This

OS X How to install MongoDB for PHP

Mar 15, 2012 by

Installing MongoDB

This tutorial will use MacPorts, so please first of all make sure you have XCode installed as it will be needed for MacPorts (and many other things too if you are a developer and you probably are if you are reading this)

You can see how to install MacPorts here

Let’s install MongoDB. It’s one easy command with MacPorts

$ sudo port install mongodb

***If you had MacPorts installed before, consider updating it

Create Mongo config file

read more

Share This

OS X Setup TextWrangler as your default editor for Git

Mar 9, 2012 by

TextWrangler already installs the command line utility “edit” so the hardest pard is done, if you did not install it for some reason, then just go to “TextWrangler –> Install Command Line Tools…” and you should be all set with this part.

To make Git play nice (or should I rather say TextWrangler play nice with Git), we need to properly set it up as the default editor for Git. And luckily it’s as easy as

git config --global core.editor "edit --wait --resume "$@""
read more

Related Posts

Share This

How to debug apps on Kindle Fire on OS X

Feb 16, 2012 by

So you bought the Kindle Fire and you want to start running and debugging your apps on it but when you connected it, you realized that it is not recognized automatically like other Android devices on OS X.

No worries, it takes 2 minutes to set it up.

You need to:

  • add 2 lines to the “adb_usb.ini” file
  • restart the ADB server

Open up the terminal and edit the “adb_usb.ini” (you can use nano instead of vim): vim ~/.android/adb_usb.ini

add the following 2 lines to the file each on a separate line:

now you need to restart the ADB server and you should be all set.

The whole sequence of commands looks like this:

 

Now you should also see the device while running your app from Eclipse

 

For the official directions in case you need them and for directions for other OS besides OS X, you can check out this PDF

Important tip:

The networking will not work until you “disconnect” the device from USB – just click on “Disconnect” don’t worry it will only cancel the “file transfer mode”. You will still be able to deploy and now actually run apps that require networking.

read more

Fixing Eclipse fonts on OS X

Feb 16, 2012 by

Select the right font:

 

Turn off anti aliasing:

In the terminal run:

defaults write org.eclipse.eclipse AppleAntiAliasingThreshold 20

 

Fix eclipse.ini:

edit $ECLIPSE_HOME » Eclipse.app » Contents » MacOS » eclipse.ini and remove the following line:

-Dorg.eclipse.swt.internal.carbon.smallFonts

 
 

End Result

The end result should look something like this:
 

  

read more