Posts Tagged ‘git’
Track remote branch
bash# git fetch
bash# git branch –track previously_created_branch origin/previously_created_branch
Categories: Uncategorized
Tags: git
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 [...]
Categories: Uncategorized
Tags: git
