Repo name

https://stackoverflow.com/questions/37635517/how-do-i-rename-a-local-only-repository-on-github-desktop-without-renaming-r

https://github.com/desktop/desktop/issues/2037

Collapse..

Update. File has moved to ?.

Git syn’s name with the directories name.

%LocalAppData%\GitHub\Cache.db
Replace(insert) <project name> against ‘Name’
Format: <path> ‘Name’ <Project name>

‘find’ to determine the one.

Use snippet.

function getElementByXpath(path) {

Return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;.

}.

function overrideRepoNames(repoNames) {

for (x in repoNames) {

GetElementByXpath('//*[@id="__ListRow_1-' + (parseInt(x) + 1) + '"]/div/div[2]/span/span').innerHTML = repoNames[x].replace(new RegExp('\\\\','g'), ' \\ ').

}.

}.

RepoNames = ['Ujnotes\\Website\\Framework', 'WCode\\Website\\Framework', 'WCode\\Website\\interim', 'WCode\\Location\\interim', 'Ujnotes\\Website\\interim', 'WCode\\Location\\Paper', 'WCode\\Website\\Project', 'WCode\\Android\\Project', 'WCode\\Windows\\Project', 'WCode\\Location\\Project', 'Ujnotes\\Website\\Project'];.

getElementByXpath('//*[@id="desktop-app-toolbar"]/div[1]/div/div/button').addEventListener('click', function(event) {

setTimeout(function() {

if(getElementByXpath('//*[@id="foldout-container"]') != null)

OverrideRepoNames(repoNames).

}, 50);.

});.

Here is AHK script to automate the execution of the script snippet at launch

Run, "%LocalAppData%\GitHubDesktop\GitHubDesktop.exe".

WinWait, GitHub Desktop.

Sleep, 1000.

Send, {CTRLDOWN}{SHIFTDOWN}i{SHIFTUP}{CTRLUP}.

Sleep, 2000.

Send, {CTRLDOWN}{SHIFTDOWN}p{SHIFTUP}{CTRLUP}.

Sleep, 2000.

Send, {BACKSPACE}.

Sleep, 100.

Send, {!}.

Sleep, 100.

Send, {ENTER}.

Sleep, 500.

Send, {CTRLDOWN}{SHIFTDOWN}i{SHIFTUP}{CTRLUP}.

Updated: 2026 Aug 19