# For 2.9.0 latest version
sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.9.0-linux2/GitHubDesktop-linux-2.9.0-linux2.deb
sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-2.9.0-linux2.deb
# Use the source link for latest versions
# https://dev.to/danyson/how-to-install-github-desktop-for-ubuntu-debian-4hko
# For 3.0.3
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.0.3-linux1/GitHubDesktop-linux-3.0.3-linux1.deb
sudo dpkg -i GitHubDesktop-linux-3.0.3-linux1.deb
# Remove installer
rm -f GitHubDesktop-linux-3.0.3-linux1.deb