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
+1 for the feature request. Actually I would say installation on all platforms should likely be as easy as a shell command. Eg starship and brew are installed via:
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
If this calls through to apt or dnf or other package managers that is fine but having a simple up to date install is nice.
Reacted by Roberto Orellana Aliano, Mateusz Łoskot, Shawn Zhang and Joshua Canfield
Reacted by lonix1, Pål Syvertsen Stakvik, Hyx (Henry Cho), Fred Ngo, Robert Durcansky, Anton Pomozov, Lukáš Kováč, gitmpr, Raihanur Rahman Jewel, Andrei Micuda and 18 more
@extrawurst I see the docs already have entries for other distributions - maybe his script can be added there, for now (until gitui is in the ubuntu/debian package repo, or there is an official PPA).
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
This script showing me this . could u help please!
invalid path
please run gitui inside of a non-bare git repository
PS: I have solved . Ectually I have runned gitui from a repository having no git initialized. so that's happen. [now inner me is lauging . what a silly mistake i have done]
This script has 3 minor flaws, it doesn't give ownership of the file to root and leaves behind the gitui-linux-aarch64.tar.gz, gitui-linux-arm.tar.gz and gitui-linux-armv7.tar.gz files, it also downloads the builds for all unnecessary architectures, here is an improved version that (from my testing on my local machine at least) fixes all these problems (plus a few tweaks and comments) (this is still missing some basic logging, checks and is not as efficent and as well written as it could be):
ARCHITECTURE=musl # set the desired build architecture in a environment variable# "musl" in this case seems to be for the x86-64 (also known as x64, x86_64, AMD64 and Intel 64) architecture)# If you need the build for another architecture you can swap "musl" with "aarch64", "arm" or "armv7", you can run "/bin/uname -i" to see what architecture your system is using
/bin/curl -s /bin/curl -s https://api.github.com/repos/extrawurst/gitui/releases/latest | /bin/grep -wo "https.*gitui.*linux.*${ARCHITECTURE}.*gz"| /bin/wget -qi - # get the latest builds of gitui (they are archives) (using a regex)
/bin/find . -maxdepth 1 -name "gitui*linux*${ARCHITECTURE}*gz" -exec /bin/tar xzvf {} \;;# find the downloaded build archive exact name and extract everything from it (including the gitui executable) (using a wildcard)
/bin/sudo /bin/chown root:root gitui # set ownership and group ownership of the gitui executable to root
/bin/sudo /bin/chmod u=rwx,g=rx,o=rx gitui # set the permission of the gitui executable to reflect the usual permissions in /usr/local/bin/ (-rwxr-xr-x)
/bin/sudo /bin/mv gitui /usr/local/bin/ # move the gitui executable to /usr/local/bin/
/bin/find . -maxdepth 1 -name "gitui*linux*${ARCHITECTURE}*gz" -exec /bin/rm {} \;;# find the downloaded build archive exact name and remove it (using a wildcard)
/bin/rm gitui 2> /dev/null # rm the gitui executable if something went wrong and is still present in the current directory (and also sopress the output of "rm" if the file is not found because everything worked properly)
In alternative you can also use this shortened and compressed version that also has a few checks:
Then you can call gitui while inside a git repository in your favourite shell.
Remember to run this script (or the one liner alternative) again to update gitui in the future.
As a better temporary alternative someone could write a simple wrapper that auto updates gitui every time it's called, if someone wants to do that and/or improve on this script that would be wholesome :D
Reacted by creeloper27, rustam, Yusuf Tarık Günaydın, Zhan Rongrui, Mateusz Łoskot, Andy Yong, Frank Xu, Troy McConaghy, Sean Aubin, Grzegorz Żebrowski and 2 more
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
This script has 3 minor flaws, it doesn't give ownership of the file to root and leaves behind the gitui-linux-aarch64.tar.gz, gitui-linux-arm.tar.gz and gitui-linux-armv7.tar.gz files, it also downloads the builds for all unnecessary architectures, here is an improved version that (from my testing on my local machine at least) fixes all these problems (plus a few tweaks and comments) (this is still missing some basic logging, checks and is not as efficent and as well written as it could be):
ARCHITECTURE=musl # set the desired build architecture in a environment variable# "musl" in this case seems to be for the x86-64 (also known as x64, x86_64, AMD64 and Intel 64) architecture)# If you need the build for another architecture you can swap "musl" with "aarch64", "arm" or "armv7", you can run "/bin/uname -i" to see what architecture your system is using
/bin/curl -s /bin/curl -s https://api.github.com/repos/extrawurst/gitui/releases/latest | /bin/grep -wo "https.*gitui.*linux.*${ARCHITECTURE}.*gz"| /bin/wget -qi - # get the latest builds of gitui (they are archives) (using a regex)
/bin/find . -maxdepth 1 -name "gitui*linux*${ARCHITECTURE}*gz" -exec /bin/tar xzvf {} \;;# find the downloaded build archive exact name and extract everything from it (including the gitui executable) (using a wildcard)
/bin/sudo /bin/chown root:root gitui # set ownership and group ownership of the gitui executable to root
/bin/sudo /bin/chmod u=rwx,g=rx,o=rx gitui # set the permission of the gitui executable to reflect the usual permissions in /usr/local/bin/ (-rwxr-xr-x)
/bin/sudo /bin/mv gitui /usr/local/bin/ # move the gitui executable to /usr/local/bin/
/bin/find . -maxdepth 1 -name "gitui*linux*${ARCHITECTURE}*gz" -exec /bin/rm {} \;;# find the downloaded build archive exact name and remove it (using a wildcard)
/bin/rm gitui 2> /dev/null # rm the gitui executable if something went wrong and is still present in the current directory (and also sopress the output of "rm" if the file is not found because everything worked properly)
In alternative you can also use this shortened and compressed version that also has a few checks:
Then you can call gitui while inside a git repository in your favourite shell. Remember to run this script (or the one liner alternative) again to update gitui in the future.
As a better temporary alternative someone could write a simple wrapper that auto updates gitui every time it's called, if someone wants to do that and/or improve on this script that would be wholesome :D
I'm guessing that $(uname -m) is evaluating to x86_64 which is not a valid architecture in this case, as I mentioned in my original comment:
# "musl" in this case seems to be for the x86-64 (also known as x64, x86_64, AMD64 and Intel 64) architecture)`
You need to swap $(uname -m) for musl, the end result should look like this: ARCHITECTURE=musl;
Idealy my original script could get updated to use $(uname -m) to automatically detect the system architecture and swap it for the appropriate corrisponding name.
For those who want to have their own .deb package which could be installed with dpkg
#!/bin/bash
# Change $(uname -m) to a proper architecture if it doesn't work for you
ARCHITECTURE=$(uname -m)
url=$(curl -s https://api.github.com/repos/gitui-org/gitui/releases/latest | grep -wo "https.*gitui.*linux.*${ARCHITECTURE}.*gz")
if [[ $url =~ /v(([[:digit:]]+\.){2}[[:digit:]]+)/ ]] ; then
ver=${BASH_REMATCH[1]}
pkgarch=$(dpkg --print-architecture)
pkgdir=gitui-$ver-$pkgarch
bindir=$pkgdir/usr/local/bin
mkdir -p $bindir
curl -Ls $url | tar xz --one-top-level=$bindir
mkdir -p $pkgdir/DEBIAN
cat >$pkgdir/DEBIAN/control <<EOL
Package: gitui
Version: $ver
Architecture: $pkgarch
Maintainer: Foo Bar
Description: TUI Git client
EOL
dpkg-deb --build --root-owner-group $pkgdir
else
echo No version found in the url $url
exit 1
fi
Reacted by Fred Ngo, creeloper27, Kirill and Nik Handyman
Activity
extrawurst commentedon Nov 29, 2021
I am no Linux user. Need help here and please review #903 aswell
extrawurst commentedon Dec 1, 2021
@boydjohnson mentioned interest in working on this: #903 (comment)
extrawurst commentedon Dec 5, 2021
Does https://github.com/sassman/rust-deb-builder help anyhow?
It seems desirable to have deb files in releases (see CD.yml).
jasonfharris commentedon Jan 3, 2022
+1 for the feature request. Actually I would say installation on all platforms should likely be as easy as a shell command. Eg starship and brew are installed via:
If this calls through to apt or dnf or other package managers that is fine but having a simple up to date install is nice.
WilliamTambellini commentedon Mar 9, 2022
+1
frixaco commentedon Apr 19, 2022
As a temporary solution, here's an install script for Ubuntu (installed at
/usr/local/bin):lonix1 commentedon Apr 20, 2022
@frixaco Thank you, that works.
@extrawurst I see the docs already have entries for other distributions - maybe his script can be added there, for now (until gitui is in the ubuntu/debian package repo, or there is an official PPA).
stale commentedon Oct 20, 2022
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
jewel109 commentedon Oct 28, 2022
This script showing me this . could u help please!
PS: I have solved . Ectually I have runned gitui from a repository having
no git initialized. so that's happen. [now inner me is lauging . what a silly mistake i have done]creeloper27 commentedon Mar 16, 2023
This script has 3 minor flaws, it doesn't give ownership of the file to root and leaves behind the
gitui-linux-aarch64.tar.gz,gitui-linux-arm.tar.gzandgitui-linux-armv7.tar.gzfiles, it also downloads the builds for all unnecessary architectures, here is an improved version that (from my testing on my local machine at least) fixes all these problems (plus a few tweaks and comments) (this is still missing some basic logging, checks and is not as efficent and as well written as it could be):In alternative you can also use this shortened and compressed version that also has a few checks:
Then you can call
gituiwhile inside a git repository in your favourite shell.Remember to run this script (or the one liner alternative) again to update
gituiin the future.As a better temporary alternative someone could write a simple wrapper that auto updates
gituievery time it's called, if someone wants to do that and/or improve on this script that would be wholesome :Dstale commentedon Sep 17, 2023
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
robozb commentedon Sep 19, 2023
very sad there isn't a repo for debians of gitui :(
fredngo commentedon Oct 7, 2023
Not dormant
taikulawo commentedon Oct 27, 2023
I think debian/ubuntu has most users but there no debian/ubuntu installation guide
nielsbaltodanomatrix commentedon Dec 11, 2023
works in wsl ubuntu 22.04
garam-kim1 commentedon Apr 19, 2024
Got error and I changed to :
creeloper27 commentedon Apr 20, 2024
I'm guessing that
$(uname -m)is evaluating tox86_64which is not a valid architecture in this case, as I mentioned in my original comment:You need to swap
$(uname -m)formusl, the end result should look like this:ARCHITECTURE=musl;Idealy my original script could get updated to use
$(uname -m)to automatically detect the system architecture and swap it for the appropriate corrisponding name.montoner0 commentedon Jan 3, 2025
For those who want to have their own .deb package which could be installed with dpkg
0hiru commentedon Jun 22, 2025
The GitHub repository URL and architecture-specific filenames have changed, so I've updated the script with some improvements of my own.
Install
To uninstall:
Key changes:
extrawurst/gitui→gitui-org/gituiTested on Ubuntu 22.04 LTS with gitui v0.27.0.