Feature Suggestion for Branch Switching/Creation in Git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Git Development Team,

I hope this email finds you well. My name is Anatolij Vasilcenko, and I wanted to share a small suggestion for improving the Git experience based on a recent scenario I encountered.

While working with a branch that had an upstream counterpart, I mistakenly created a local branch using git branch <branch-name> (instead of 'git checkout..'), unaware that a remote branch with the same name already existed. This resulted in a local branch that wasn’t linked to the remote one, causing confusion and unexpected behavior.

It seems that Git currently doesn’t notify users in such cases, which can lead to accidental missteps. A simple warning could make things clearer, such as: "A branch with this name already exists on the remote. Would you like to connect this branch to the remote counterpart?"

Adding this kind of confirmation step would be helpful in avoiding such situations, particularly in collaborative environments. I believe this small change could enhance usability for many users.

Thank you for considering this suggestion, and for all the work your team puts into making Git the exceptional tool it is. Please feel free to reach out if further details would be helpful.

Kind regards,

Anatolij Vasilcenko





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux