• Archive
  • RSS
banner
Pop-upView Separately
  • 2 months ago
  • 1
  • Permalink
  • Share
    Tweet

Rails Ultimate Install Guide on OS X Lion (using RVM, Homebrew, and Pow)

Very usefull link for ios developers

    • #Rails
    • #Lion
    • #Mac so x
    • #RVM
  • 2 months ago
  • 18
  • Permalink
  • Share
    Tweet
Pop-upView Separately
  • 2 months ago
  • Permalink
  • Share
    Tweet

Create a git repository on a USB drive

I am sure many of you would need this solution. When you use git, you often deal a remote repository placed somewhere on the network. However, it can be you want to use a USB memory stick or an external hard drive as a remote git repository. Here how to create it.

First of all, I suggest you to format and encrypt the USB stick or hard drive. This step is not mandatory, but it keeps your code secure from unfriendly people. Additionally, if you loose your memory stick or hard drive, nobody has access to your code. Use Disk Utility to erase and encrypt the memory stick.

Once you have done that, open the Terminal.app and create a directory in the memory stick or hard drive. Follow these commands:

» mkdir /path/to/usb/repository.git

» cd /path/to/usb/repository.git

» git init —bare

The last command creates a bare git repository. Now, go to your local project directory in your computer and do the following (I suppose you already created a local git repo and did the first commit):

» git remote add usb file:///path/to/usb/repository.git

In this way, you created an alias (usb) to the remote repository path. 

Finally, launch Xcode and choose File -> Source Control… -> Push. The project is now pushed to your memory stick.

You can now work as you had a remote repository. Just push and pull as you normally do with the network repository. If you need to move the project to a different computer, well, it is really easy: load the usb drive in the new computer and then, just clone the repository.git directory wherever you prefer.

    • #git
    • #xcode
    • #usb
    • #hd
    • #hard drive
    • #remote
    • #repository
    • #repo
  • 2 months ago
  • 7
  • Permalink
  • Share
    Tweet
Beer tasting
Pop-upView Separately

Beer tasting

    • #california
    • #usa
    • #san luis obispo
  • 2 months ago
  • 2
  • Permalink
  • Share
    Tweet
The new iPhone 4s camera
Pop-upView Separately

The new iPhone 4s camera

    • #california
    • #usa
    • #san luis obispo
  • 2 months ago
  • 4
  • Permalink
  • Share
    Tweet
San Louis Mission
Pop-upView Separately

San Louis Mission

    • #california
    • #usa
    • #san luis
  • 2 months ago
  • 4
  • Permalink
  • Share
    Tweet
Surfing car
Pop-upView Separately

Surfing car

    • #california
    • #morro bay
    • #usa
  • 2 months ago
  • Permalink
  • Share
    Tweet
Monterey Bay Aquarium
Pop-upView Separately

Monterey Bay Aquarium

    • #usa
    • #california
    • #monterey
  • 2 months ago
  • 4
  • Permalink
  • Share
    Tweet
← Newer • Older →
Page 2 of 22

About

Avatar Sharing ideas and knowledge about iOS and Mac programming and more...

Pages

  • About
  • iNVASIVECODE
  • LinkedIn
  • iOS Training

More about me

  • geppyp on Dribbble
  • @geppyp on Twitter
  • Facebook Profile
  • geppyp on Foursquare
  • geppyp on Gowalla
  • My Skype Info
  • Linkedin Profile

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr