Skip to main content
11 events
when toggle format what by license comment
Jun 16, 2017 at 3:01 comment added Peter Cordes @mbdevpl: thanks, I added a warning to the answer about this drawback. Feel free to make an edit yourself if you see room for improvement.
Jun 16, 2017 at 2:55 history edited Peter Cordes CC BY-SA 3.0
warn about losing tracking-branch info
Jun 15, 2017 at 10:56 comment added mbdevpl @PeterCordes As a side note, git sometimes sets tracking branch automatically. E.g. when you do git checkout devel but only origin/devel exists, git will automatically create and checkout devel, while also setting its tracking branch accordingly.
Jun 15, 2017 at 10:53 comment added mbdevpl @PeterCordes Ineed, when branch names don't match it matters. Also when there is more than one remote. Also when you're using git prompt to display branch status, it'll show commit distance to your tracking branch (if it's set). Also, git status output is affected. Additionally, in some cases git fetch and git push won't work without specifying remote explicitly if you don't set the tracking branch. I don't know about all the cases, but for me the general rule of thumb is that for convenience and speed of work, it's better to have tracking branches in order.
Jun 14, 2017 at 16:50 comment added Peter Cordes @mbdevpl: does that mostly only matter when your local branch has a different name from the remote branch it's tracking?
Jun 14, 2017 at 16:41 comment added Peter Cordes @mbdevpl: I'm not really a git expert. I think I understand what you mean, but not the implications. I've used this fairly often, and still been able to push those branches to branches of the same name on a remote. What does the association between a branch and its remote-tracking branch do for you?
Jun 14, 2017 at 8:23 comment added mbdevpl This way, however, the tracking branch information is lost.
Dec 30, 2016 at 3:41 history edited Peter Cordes CC BY-SA 3.0
added 20 characters in body
Jun 3, 2016 at 19:58 comment added Michael Cole So easy! I may have just converted from gitg to gitk.
Sep 24, 2015 at 23:15 history edited Peter Cordes CC BY-SA 3.0
added 666 characters in body
Aug 10, 2015 at 8:44 history answered Peter Cordes CC BY-SA 3.0