Git Remote Repository Setup

Note to self, make sure everyone can login without a password. Setup the remote repository,

ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare

If you are planning to serve via HTTP,

git-update-server-info

On local machine for a new project,

cd my_project
git init
git add *
git commit -m "Initial Commit"
git remote add origin ssh://[email protected]:22/~/my_project.git
git push origin master

If you already have a project and defined a remote named origin (say you followed GitHub's instructions), you'll want to delete the remote first,

git remote rm origin

and add your remote,

git remote add origin ssh://[email protected]:22/~/my_project.git
git push origin master