Skip to content

Add a star/pin option for files uploaded in the code section #35248

@Ayush-D2004

Description

@Ayush-D2004

Code of Conduct

What article on docs.github.com is affected?

Managing files in a repository : This article covers how GitHub organizes files and how repositories are structured. GitHub arranges the files list in alphabetical order but there are certain files that are more important and need to be shown at top irrespective of their name like "main.file" the issue can be seen in my repository in the provided link : https://github.com/Ayush-D2004/Cargo-Shipment-Management-System

This can be resolved by adding a feature to star/pin a file at the top

What part(s) of the article would you like to see updated?

I understand that GitHub lists repository files in alphabetical order by default, but I would like to see a feature where users can pin files at the top of the file list without having to rename or restructure files.

Currently, the only workaround is renaming files with prefixes like ( A_ or 01 ), which can lead to inconsistent naming conventions and is not ideal in some cases.

It would be helpful to have an option to pin or "star" specific files or make them appear at the top of the file list, even if they're not alphabetically first. This would be especially useful for files like "main.c", which are central to the functionality of the project.

Additional information

I think every developer might have faced this issue already but are fine with the way-around of renaming file or restructuring the repository. The update can be added easily that can help save a lot of efforts.
Screenshot (78)

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions