Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 382
    • Issues 382
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3154
Closed
Open
Issue created Feb 06, 2018 by Christoph Jüngling@juengling

Decorate bare repository's folder with a Git icon

While Git repositories with a working folder usually display overlay icons to represent the status of folders and files, bare repositories don't. They look like ordinary folders, but should not be manipulated in any way by the user.

I recommend to indicate the special nature of those bare repository folders by using the Windows possibility to display another icon than the standard folder icon, for example the Git icon.

Example

Git-Repositories

  • bare1.git: Bare repository as proposed
  • bare2.git: Bare repository as usual
  • workfolder: Normal repository for development as usual

Realization

This can be done automatically by some simple actions:

  • Create a desktop.ini file in the bare repository's main folder with this plain text content:

[.ShellClassInfo] IconResource=git.ico

  • Store an icon file with the Git logo in the same folder, and name it git.ico.
  • Set the system attribute for the Git folder.

This shall automatically be done if the user creates a bare repository by TortoiseGit (ideally also if the command git init --bare foldername is used).

Edited Oct 19, 2018 by Sven Strickroth
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking