You are here

software development

Update a Git Repository from local versioned files

If you are new to using Git as a versioning tool, you might make a common mistake whilst managing local files - I know I did.
When you start working on a cloned remote git repository (created from the git clone command) all the following commits (done by the git commit command) are executed on your local repository.
To upload the commits to the remote repository you need to perform a push command, like the following using ssh:

Setting up a git server on MacOS X Lion

Recently I found this nice tutorial on how to setup a git server on a Mac OS X Lion.
It goes straight to the point and you can setup the server using apache real quick!

Enjoy!

Update on October, 15th 2011: Since the referred website has been down a few times the past few days, I have added below the most important steps for setting up the git server on a MacOS X Lion.

Ruby on Rails on Mac OS Lion MysqlCompat::MysqlRes Error

If you are running ruby in Mac OS X Lion and are having trouble with MySQL with the ever annoying message "uninitialized constant MysqlCompat::MysqlRes please do not spend the hours I did trying to solve it. Here is how to do it. The instructions below assume you have a 64 bits processor.

Attempt to run Rails Server creates a folder named 'server'

If you are attempting to execute the rails server by executing rails s or rails server and instead of having the server started you only get a folder named 'server' or the usage help message for the rails command, you are most probably running rails version 2.x.
For this version of rails you must use the command ruby script/server to start the server.

Git for Windows

Just a quick one... if you need to use Git in a Windows Environment, simply download the msysgit installer and follow the instructions on screen.

Installing Rails Plugins in Windows

If you are using RoR (Ruby on Rails) and Windows to develop you probably ran into this problem. You want to install a Plugin and use it in your application, so you find some tutorial or links anywhere on the big WWW and when you copy/paste the links they do not work and you get an error message telling you that this is not an executable file. Much like this:

C:\repository\ruby\project>script\plugin install git://github.com/dougal/daemon_generator.git
'script\plugin' is not recognized as an internal or external command, operable program or batch file.

HOW-TO Move and Import Subversion Repositories - dump them

A few weeks ago I wrote an article on how to install Subversion and Apache in a Windows environment and another article about how to install those in a Linux environment.

Subscribe to RSS - software development