Git - order of "git branch" changed after renaming branch -


out of curiosity.

$ git log --oneline fac0840 (head -> tostringnewfeatureclass) secondmain - add dupa tostring c289486 newfeatureclass tostring implementation ccd48cb (newfeatureclass) add newfeatureclass fecb127 (master) remove tmpfile.txt staging index 

i renamed 1 of branches newfeatureclass , it's being shown on top of list.

$ git branch   newfeatureclass   master * tostringnewfeatureclass 

before renaming 'git branch' command used show branches creation order, newfeatureclass created on top of master, tostringnewfeatureclass on top of newfeatureclass, shown in following order masternewfeatureclass, tostringnewfeatureclass. why order changed?

thanks

git branch documentation

--sort= sort based on key given. prefix - sort in descending order of value. may use --sort= option multiple times, in case last key becomes primary key. keys supported same in git for-each-ref. sort order defaults sorting based on full refname (including refs/... prefix). lists detached head (if present) first, local branches , remote-tracking branches.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -