Remote Branches
Remote tracking branches look like origin/main. git branch -r lists them.
Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
git init -q --bare ../r.git && git remote add origin ../r.git && git push -q -u origin main
git branch -r | tr -d ' 'Result
origin/main
Exercise
List remote.
git branch Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.