-
Notifications
You must be signed in to change notification settings - Fork 3
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
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
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.
If you are a developer for the arch-games project, or a repository maintainer, here are some steps to setup push access
- Set up an account at Github
- Add an SSH public key
- Send a message to Chris so that you may be given commiting access
First, you need to clone our repository
git clone git@github.com:Stythys/arch-games.git
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.
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