Git does not show remote branches after fresh creation?

After creation of a new branch in bitbucket Github Gitlab …

when we make git branch -r to display   new branches we don’t see them

we have to make git fetch   that git client update the config file with the new branches linkes

 

git branch -r  will diplay the ew branches with the masters

 

as.PNG

 

You can use:

git checkout -b new_branch

to checkout and create a branch at the same time. This is the same thing as doing:

git branch new_branch
git checkout new_branch


Votre commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l’aide de votre compte WordPress.com. Déconnexion /  Changer )

Image Twitter

Vous commentez à l’aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l’aide de votre compte Facebook. Déconnexion /  Changer )

Connexion à %s