Re:Shit – An implementation of Git using POSIX shell
by reagent_finder on Wednesday February 12, 2020 @02:15AM
(#22306627)
...yes, remote tracking branches are interesting as well, I don't know a situation where they wouldn't be.
There's plenty of weirdness in Git, but honestly my main complaint is that the interface is awful and the documentation makes Dostoyevski look modern and sleek.
Re:Shit – An implementation of Git using POSIX shell
by majewsky on Wednesday February 12, 2020 @07:16AM
(#22308183)
You clearly have not ever worked on repos where nobody ever cleans up after themselves as far as feature branches go. I'm working with repos with remote branches numbering in the hundreds. `git branch -a` is pretty useless at this point unless paired with grep.
`git remote` and `git branch` list the remotes and branches respectively.
Adding -v makes both of these verbose. It will additionally show what each branch/remote is "pointing at".
Adding -a to `git branch` shows remote tracking branches in additional to local branches. This not normally interesting so the default is to list only local branches.