Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
Stythys edited this page Sep 9, 2010 · 2 revisions

About Git

Git is distributed source code management system devised by Linus Torvalds and manages the Linux kernel as well as other projects. We use it here to maintain our PKGBUILDs

Crash course with git

GIT is available for many different operating systems and linux distributions, below are a few steps to install git for your preferred Linux distribution

Getting git with Arch Linux

To get git with an Arch-based distro, type:

pacman -S git

Your results may vary, if your distribution has no package for git, try pacman -Ss git as it may be in git-core

Pulling from our git repository

First, you need to clone our git repository. Run:

git clone git://github.com/Stythys/arch-games.git

You should now have a directory labelled arch-games in your current working directory, which contains the git repo.

Developers

If you are a developer for the arch-games project, or a repository maintainer, here are some steps to setup push access

  1. Set up an account at Github
  2. Add an SSH public key
  3. Send a message to Chris so that you may be given commiting access

Setting up the git repository

First, you need to clone our repository

git clone git@github.com:Stythys/arch-games.git

Using your git repo

First off, this is intended to be a brief introduction, not a full course on git.

After you change directory to your git repo, make any changes to whatever files you want.

cd packages/awesomest-game-ever
vim PKGBUILD

You should always check that your changes work.

makepkg

Add any changes you have done to git’s “staging area”. You can do this with multiple files in one line.

git add PKGBUILD

Commit the changes to your git repo.

git commit -a

If you want your changes to be visible to others, follow the guide below on setting up for pushing.

Setting up your git repository for pushing

Now that you have your repository, run this to tell git where to push the data to. This step isn’t needed if you cloned using the git@github url from above.

git remote add origin git@github.com:Stythys/arch-games.git

Before pushing an update you should do

git commit -a

This should allow you to push to our repository with

git push origin master

See Also

The github project

The git article at wikipedia

git documentation