Posts Tagged ‘git’

Track remote branch
bash# git fetch
bash# git branch –track previously_created_branch origin/previously_created_branch

Monday, August 1st, 2011 at 12:31 | 0 comments
Categories: Uncategorized
Tags:

I work with two separate systems, my laptop and my desktop. I also have a VPS where I would like to store my centralize repository.
On my laptop

cd myproject
git init
git add .
git commit -m “My first commit”

On my VPS

mkdir -p /home/sam/myproject.git
cd /home/sam/myproject.git
git –bare init
exit

Back on my laptop

cd myproject
git remote add origin ssh://myserver/home/sam/myproject.git

On my desktop

cd mysandbox
git [...]

Friday, October 23rd, 2009 at 13:09 | 0 comments
Categories: Uncategorized
Tags:
TOP