Make Branch accessible after git fetch -
is there way make branch directly accessible after git fetch
without git checkout <newbranch>
?
if use git fetch
command want see new branches directly in list shown after use e.g. git branch
.
if "accessible" mean visible in list given git branch
can use -a
flag:
git branch -a
it show branches including remote tracking ones.
so if added second_branch
remote repository, before running git fetch
might see:
%> git branch -a * master remotes/origin/master
then after git fetch
might see:
%> git branch -a * master remotes/origin/master remotes/origin/second_branch
if want see remote tracking branches there's -r
option.
Comments
Post a Comment