Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 364
    • Issues 364
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • 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
Created Feb 06, 2018 by Christoph Jüngling@juengling3 of 3 tasks completed3/3 tasks

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