Been putting off getting git setup. Here’s the lazy outline to gitting it done on Ubuntu. Aptana doesn’t like an empty repo so don’t forget to do an initial commit somewhere else before Aptana tries to talk to it. you’ll have a webaccessible git repo to check out with almost no configuration!
- first install git on ubuntu
sudo apt-get install git
sudo apt-get install gitweb
- I don’t like default git repo so i’ll make it another location and link it to the default
Not like you need to but you can edit the conf file. i like leaving things in default locations
sudo vim /etc/gitweb.conf
move the old folder and create a ln in it’s place pointing to the new home
/var/cache/git
- while in the /var/cache/git directory create your new repo
mkdir devnotes.git
cd devnotes.git/
git --bare init
- create an initial submission. this is important as aptana doesn’t know how to deal with empty repos
git remote add origin ssh://user@server:22/var/cache/git/devnotes.git
mkdir local_devnotes
cd local_devnotes
git init
touch .gitignore
git add *
git commit -m "this is my first time"
git push -u origin master - Done. you can trash that local_devnotes. Now you just need to set up aptana to look for the repo using the same server info and you should see your first checkout upon completion
Leave a Reply