Git and GitHubLesson 25Free preview
GitHub Branch
This lesson is part of Git · All levels
Summary
In addition to the local branch, Git recognizes remote branches represented as remote-tracking branches such as origin/play. The git branch -r command displays branches on the remote, while git branch -a displays local and remote at the same time. Remote branch management is done via the push or push origin --delete command.
Key points
- Git branch -r displays branch remote-tracking
- Git branch -a displays local and remote branches simultaneously
- Origin/play is a reference to the final fetch, not a local physical branch
- Git origin --delete remove branch in remote
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.