Andrea Daly : Pull from an existing Remote Feature Branch - Option A

[setup]

mkdir <project-dir>

cd <project-dir>

git init

[configure remote origin #connecting to remote]

[pre-requisite: setup]

[ensure any existing local changes on master are pushed or stashed so working dir is clean]

git fetch --all

OR

git fetch <exististing-remote-feature-branch>

git pull origin master

git branch -r

git checkout --track origin/<exisiting-remote-feature-branch>

[example:git checkout --track origin/new-feature-a]

 

[make and commit changes]

[remote tracking branch already set so only need:]

git push

 

[verify  remote tracking branch]

git branch -vv