Pushing a Branch Back to a Git Project Repository

Posted by Tres Sat, 18 Oct 2008 03:41:00 GMT

As a former SVN-evangelist, I can say that I came to Git with quite a bit of speculation – wondering why we need just another revision control system. Subversion already did everything we needed – so why mess around with something else.

After using Git for the last few months, I can say that I’m truly won-over. It seems like more-of-the-same at the outset, but as you get deeper into it, it really proves to be one of those really well thought out things you run into every once in a while; I’d liken the move from Subversion to Git something akin to the move from Procedural to Object Oriented Programming. Once you ‘get it,’ there’s really no going back.

Anyway, on to the point of all this.

So you use git push to push a branch you’ve created back up to the project repository.

git push origin DescriptiveBranchName

Posted in  | Tags , , ,

Set a File Executable in a Subversion Repository

Posted by Tres Fri, 11 Apr 2008 02:56:00 GMT

If you’re managing scripts in subversion, you’ll probably run into a file that was committed without the executable bit set when it was committed.

Changing the permissions in the repository is just a matter of using propset like this:

svn propset svn:executable ON /path/to/file

Posted in  | Tags , ,

Using CentOS Plus Repositories

Posted by Tres Sat, 14 Apr 2007 12:31:00 GMT

Using CentOS Plus Repositories

The plus repositories allow access to hundreds of additional packages that aren’t shipped with RedHat Enterprise Linux. These are packages that are tested by the CentOS team and are considered to extend the functionality of RedHat distributed packages.

Temporary Using CentOS Plus Repositories

You can temporarily enable the CentOS plus repository by using the –enablerepo flag.

yum --enablerepo=centosplus install PackageName

Permanently Adding Plus Repositories

You can permanently enable the centosplus repository by editing /etc/yum.repos.d/CentOS-Base.repo and changing the [centosplus] directive from enabled=0 to enabled=1

[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

Posted in ,  | Tags , , ,

Adding Repositories to Red Hat Enterprise / CentOS

Posted by Tres Sat, 13 Jan 2007 00:02:00 GMT

Using yum simplifies package management under Red Hat systems. The problem is that by default, Red Hat only provides a relatively small subset of applications available for *nix systems. Adding new package repositories allows access to thousands of applications that you might otherwise have to compile and manage yourself.

In order to set up new repositories in yum, you’ve got to do two things:

1) Import the GPG key for the repository

2) Add the repository information to a file in /etc/yum.repos.d/

UPDATE Dries repos currently only work with RHEL 3/CentOS 3 and RHEL 4.

Dries
rpm --import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt
wget -P/etc/yum.repos.d/ http://blas.phemo.us/files/dries.repo
Dag
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
wget -P/etc/yum.repos.d/ http://blas.phemo.us/files/dag.repo
Jpackage
rpm --import http://www.jpackage.org/jpackage.asc
wget -P/etc/yum.repos.d/ http://blas.phemo.us/files/jpackage.repo

The jpackage.repo file is configured for use with RHEL/CentOS systems. You can also download the Jpackage provided repo file at jpackage.org. You’ll just have to edit it to enable for your platform.

OpenVZ
rpm --import  http://download.openvz.org/RPM-GPG-Key-OpenVZ
wget -P/etc/yum.repos.d/ http://blas.phemo.us/files/openvz.repo

Posted in ,  | Tags , , ,