Hacker News new | past | comments | ask | show | jobs | submit login

It seems like you've made this example obtuse.

`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.




...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.


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.


this is what I have my alias set to - `git branch -a --sort=-committerdate`


That's just by accident. There's plenty of obtuse git commands , strange command names, non-standardized parameters, etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: