You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sourcegit should have a way to auto-update, or install a new version on top of the currently running one.
This would allow users to stay up-to-date without having to manually visit Github, then close the program and overwrite the existing version. Manual install can lead to errors (like duplication) or user fatigue towards updates (which can have security implications down the line)
For this, something like the following requirements have to be met
regularly check online for new version
on user-confirmation (or automatically) download update package
if you wait 1 day after the dialog popup, you can use the commandline winget to automatically update to the new version.
maybe there is a world where the program knows about this and (on windows) uses winget to check for updates instead of the github repository to then automatically run this command
@avalanchas you can use deb repository for apt, check README for installation tips. This way SourceGit will be updated when you do your regular apt update && apt upgrade routine.
FWIW, here's a Windows .bat script I use to update SourceGit (in the directory where the script file resides), from the latest release on GitHub (using curl which is nowadays included in Windows 10/11)...
@echo off
net FILE >nul 2>&1
if %errorLevel% NEQ 0 (
echo Current permissions inadequate, restarting with elevation request...
powershell -Command "Start-Process -Verb RunAs -FilePath '%0'"
exit /b
) else (
echo Administrative permissions confirmed.
cd /d %~dp0
echo Current directory:
cd
echo.
echo Downloading...
for /f "tokens=1,* delims=:" %%A in ('curl -Ls https://api.github.com/repos/sourcegit-scm/sourcegit/releases/latest ^| find "browser_download_url"') do (
echo %%B | FINDSTR "win-x64" && (
curl -kOL %%B
echo Unpacking...
tar -xf %%~nxB
echo Replacing...
copy /Y SourceGit\* .
echo Cleaning up...
del %%~nxB
rmdir /S /Q SourceGit
rem echo "Unblocking downloaded EXE...""
rem echo.>SourceGit.exe:Zone.Identifier
echo Done.
echo.
)
)
)
pause
Reacted by alejandroalvarez-trick and Thomas Michiels
Activity
mithom commentedon Apr 7, 2025
if you wait 1 day after the dialog popup, you can use the commandline winget to automatically update to the new version.
maybe there is a world where the program knows about this and (on windows) uses winget to check for updates instead of the github repository to then automatically run this command
goran-w commentedon Apr 8, 2025
The README mentions
Scoop(on Windows) as an alternative towinget, butSourceGitis also available onChocolatey(for Windows) : https://community.chocolatey.org/packages/sourcegitgoran-w commentedon Apr 8, 2025
I think it should be simply:
At least if it was installed like this:
mithom commentedon Apr 8, 2025
you can use sourcegit as that is the name, but you can also use the id to avoid conflicts:
apparently i was mistaken and it should be sourcegit-scm.sourcegit
goran-w commentedon Apr 8, 2025
ScoopandChocolateyseem to update earlier - right now both haveSourceGitatv2025.12whilewingetis still atv2025.11.avalanchas commentedon Apr 11, 2025
apt and dpkg on linux don't work that way unfortunately. If anybody has a similar tip for Linux I'd appreciate it a lot
aikawayataro commentedon Apr 11, 2025
@avalanchas you can use deb repository for apt, check README for installation tips. This way SourceGit will be updated when you do your regular
apt update && apt upgraderoutine.goran-w commentedon Dec 5, 2025
Apparently,
wingetis no longer an option for installing / updating SourceGit, see #1931 (comment).goran-w commentedon Dec 5, 2025
FWIW, here's a Windows
.batscript I use to update SourceGit (in the directory where the script file resides), from the latest release on GitHub (usingcurlwhich is nowadays included in Windows 10/11)...