How to List, Switch and Checkout Git Branches

preview_player
Показать описание
Working with Git branches? Need to switch between branches and not sure whether you should use the Git checkout or switch commands to move between branches?

In this quick Git tutorial, which is done against GitHub branches, we'll show you how to change branches with the switch and checkout commands, and also provide insights on what the difference is between a remote branch, local branch, remote tracking branch and a tree branch.

Okay, we may not talk about trees. But we'll cover all the other key aspects of Git branch list, switch and checkout commands.
Рекомендации по теме
Комментарии
Автор

i thought switch and checkout were the same, but apparently they are now. thanks!

andresj
Автор

Great video, easy explanation! Is this up to date for 2023?

jessicabull
Автор

some how in github I have 2 repos main and master, but the terminal does show only one, master.

osmangokturk