Skip to content

Introduce to students a different branch naming convention that is widely recognised in git-aware environments #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
krishnakumarg1984 opened this issue Oct 18, 2024 · 0 comments

Comments

@krishnakumarg1984
Copy link

krishnakumarg1984 commented Oct 18, 2024

In issue #3 and issue #5 of the 2024 classwork repository, line item 3 in the current instructions say:

  1. Create a new branch named with a combination of your team
    e.g., dpshelio-arcteaching

A more modern/widespread convention is to use the slash notation for branch names, e.g. dpshelio/arc-teaching. . Git-aware environments (like GitHub & other code-hosting orgs, various editors and IDEs) nowadays recognise this convention to neatly group branches by the name before the slash sign (see screenshots below). Furthermore, It could be handy in conjunction with the newly introduced sub-issues feature, one can adopt a convention to organise branches as username/feature/sub_feature and it will neatly show this in their UI.

Example of a git repo with the hyphen convention currently used by the class

Image
Image attributed to source git-naming-conventions-blogpost

Example of a git repo with the proposed slash sign that shows neat grouping

From Atlassian

Image
Image attributed to source git-naming-conventions-blogpost

From VSCode

Image
Image attributed to source git-naming-conventions-blogpost

The support is quite widespread, having been adopted in almost all online and offline git-aware environments and tools.

Rationale and motivation for this proposal

Enables us to teach our students the current trends and conventions in the software engineering field whenever we introduce new concepts (git-branching in this case). This will help to reduce frictions when they transition into their professional careers.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant