How to do it...

  1. Start by listing all of the branches using the following command:
$ git branch -a 
* develop 
  remotes/origin/HEAD -> origin/develop 
  remotes/origin/develop 
  remotes/origin/feature/cities 
  remotes/origin/feature/continents 
  remotes/origin/feature/printing 
  remotes/origin/master 
  remotes/origin/release/1.0 
  1. Let's try to fetch or pull and see whether anything happens, using the following command:
$ git fetch 
$ git pull 
Already up to date. 
$ git branch -a 

* develop 
  remotes/origin/HEAD -> origin/develop 
  remotes/origin/develop 
  remotes/origin/feature/cities 
  remotes/origin/feature/continents 
  remotes/origin/feature/printing 
  remotes/origin/master 
  remotes/origin/release/1.0 
  1. The branches are still there, even if they have ...

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.