Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Friday, March 26, 2010

Installing GIT on Centos 5.4

Following directions from this site:http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/

I got the error:

[root@tricostar-nwlc git-1.7.0.3]# make prefix=/usr/local all
/bin/sh: curl-config: command not found
GIT_VERSION = 1.7.0.3
/bin/sh: curl-config: command not found
* new build flags or prefix
CC fast-import.o
....


When trying to make GIT. After a bit of googling, found that I needed to include curl-devel as a dependancy so the following instructions worked for me:

yum install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
yum install libcurl3-openssl-dev
wget http://kernel.org/pub/software/scm/git/git-1.7.0.3.tar.gz
tar xvfz git-1.7.0.3.tar.gz
cd git-1.7.0.3
make prefix=/usr/local all
make prefix=/usr/local install

Wednesday, December 30, 2009

Git and Unfuddle for python project - using .ignore

This is a reminder to me in case I forget how I got this working.

Main development environment is local laptop
Master reponsitory on Unfuddle.com
Live environment on remote server

There are a few files, like settings.py, that I don't want to be synced and as these files were already in the repository I'd created, git kept trying to sync them.

To resolve:
Assuming already have everything setup - remote server setup with clone from unfuddle.

Create .gitignore file as part of repository:

settings.py
*.pyc
*~
site_media/avatars/*

Remove settings.py from git without deleting on both local and remote environments.

In Local environment:
git rm --cached settings.py
git commit -a -m "remove settings.py"
git push unfuddle master
In remote live environment
git rm --cached settings.py
git commit -a -m "remove settings.py"
git push

That should do it. Now commits can be exchanged without settings.py being updated.