====== Git on Accelerators ======
This page is a guide to using the Git version control system on Accelerators.
**Git Overview**
If you're new to Git, or want a general introduction to using Git for version control, start off by reading the **[[all-accelerators:kb:git|Git Overview]]** in the [[all-accelerators:kb:start|All Accelerators Knowledge Base]].
These instructions are currently incomplete. Please help edit and improve them.
===== Create a Git Repository =====
To create a new Git repository on your Accelerator, first edit your ~/.bashrc file and add this to the top:
export PATH=${PATH}:/opt/local/bin
Then run something like:
cd ~
mkdir git
mkdir git/myapp.git
cd git/myapp.git
git --bare init
To push an (existing) app from your local machine up to the remote repository:
cd myapp
git add .
git commit -m "initial import"
git remote add origin ssh://hostname/home/username/git/myapp.git
git push origin master
(Perhaps there's a more standard convention for repositories; feel free to edit this to reflect that.)
{{tag>git}}