Andrea Daly : Create a New Feature Branch from Remote Master

[setup]

mkdir <project-dir>

cd <project-dir>

git init

[configure remote origin #connecting to remote]

 

[pre-requisite: setup]

git pull origin master

git status -s

ls

git checkout -b <new-local-feature-branch>

 

[make and commit changes , push to remote]

git push -u origin <new-local-feature-branch> 

 

[now branch is  tracked, subsequent push to remote is: ]

git push

 

[verify newly created remote branch and remote tracking branches]

git branch -r

git branch -vv