Git Tools
Add Git integrations to your project, mostly LFS locks
com.mikeschweitzer.git-tools 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/git-tools.git README Markdown
Copy this to your project's README.md
## Installation
Add **Git Tools** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/git-tools.git
```
[](https://www.pkglnk.dev/pkg/git-tools)README
Unity Git Tools
Improve your Unity project's Git integration with this package. Mostly helps you manage Git LFS Locks in the editor.
How to Use
- Set your username for your hosting service (GitHub, GitLab, etc) in
Preferences > Git - Open the Git LFS Locks UI with
Window > Git > Locks - Right click on an asset in the Project tab to lock, unlock, or force unlock it
Samples
Locks Window
| Without Lock ID | With Lock ID |
|---|---|
![]() |
![]() |
Raw output from command line
Branch name can be accessed with GitSettings.Branch
Showing it inside the toolbar is possible with the awesome unity-toolbar-extender:
using MikeSchweitzer.Git.Editor;
using UnityEditor;
using UnityEngine;
using UnityToolbarExtender;
namespace Editor
{
[InitializeOnLoad]
public static class Toolbar
{
static Toolbar()
{
var branchStyle = new GUIStyle
{
fontSize = 15,
fontStyle = FontStyle.Bold,
normal = new GUIStyleState
{
textColor = new Color(0.1f, 0.8f, 1.0f),
},
};
ToolbarExtender.LeftToolbarGUI.Add(() =>
{
GUILayout.Space(100.0f);
EditorGUILayout.LabelField($"Branch: {GitSettings.Branch}", branchStyle);
GUILayout.FlexibleSpace();
});
}
}
}


No comments yet. Be the first!