Git desktop linux ubuntu

dvmn-tasks / github_desktop_linux.md

По этой ссылке вы можете найти релизы Github Desktop для Linux. Чтобы скачать один из них, кликните по нужному названию (например, GitHubDesktop-linux-amd64-1.4.2-linux1.deb ).

Если вы используете Ubuntu или Debian — вам нужен установщик с расширением .deb . Скачайте его, откройте и нажмите install в появившемся окошке. Готово, программа установлена.

Запустить программу можно из меню:

Или наберите в командной строке:

Не открылось окошко/не нажимается install

Попробуйте сделать это из терминала. Откройте Свойства у скачанного установщика и посмотрите полный путь до него. Затем откройте терминал и наберите следущее:

cd /путь/до/установщика sudo dpkg -i имя_файла.deb

В командах выше вам нужно самим вставить имя скачанного файла и путь до него.

У меня не Debian и не Ubuntu

Дистрибутивов Linux очень много, и, возможно, вы используете тот, в котором нет системы dpkg . Попробуйте найти в интернете как устанавливать программы на вашей системе. Скорее всего, один из предоставляемых установщиков вам подойдёт.

Статья написана в образовательных целях на онлайн-курсе для веб-разработчиков dvmn.org.

Как запустить это десктопное приложение почему-то нигде не сказано(

Есть хороший формат AppImage. Он весит чуть больше, чем обычные, зато сразу одним файлом и со всеми зависимостями внутри. Не нужно потом захламлять систему.

После установки и настройки GitHub desktop в /etc/profile.d/GitHub появился скрипт «GitHub Desktop.sh» с пробелом в названии. Как следствие при авторизации в Ubuntu постоянно появляется ошибка типа:

Error found when loading /etc/profile:

/etc/profile: line 22: [: /etc/profile.d/GitHub: binary operator expected

As a result the session will not be configured correctly.
You should fix the problem as soon as feasible

Долго не мог залогиниться с Linux Mint (Ubuntu), после авторизации на сайте браузер не перенаправлял в github-desktop. Вот фикс, если кому-то понадобится в будущем.

image

  1. После того как авторизовались в браузере, на странице переадресации копируем ссылку (click here) — см. скриншот.
  2. Не закрываем github-desktop, который в этот момент всё ещё ждёт авторизации в браузере.
  3. Открываем терминал и выполняем: github-desktop «вставить-ссылку-сюда» (кавычки не убирать). Ссылка начинается с «x-github-desktop-dev-auth://».
  4. Теперь должно открыться первое окно github-desktop с вашим аккаунтом. Поздравляю, вы всё-таки авторизовались!

Опять без поддержки ARM64 -_-

Опять компилить из исходников.

You can’t perform that action at this time.

Источник

Saved searches

Use saved searches to filter your results more quickly

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.

Читайте также:  Linux user read only permissions

Install git illustration

How to install Git on any OS

Git can be installed on the most common operating systems like Windows, Mac, and Linux. In fact, Git comes installed by default on most Mac and Linux machines!

To see if you already have Git installed, open up your terminal application.

  • If you’re on a Mac, look for a command prompt application called «Terminal».
  • If you’re on a Windows machine, open the windows command prompt or «Git Bash».

Once you’ve opened your terminal application, type git version . The output will either tell you which version of Git is installed, or it will alert you that git is an unknown command. If it’s an unknown command, read further and find out how to install Git.

Install Git Using GitHub Desktop

Installing GitHub Desktop will also install the latest version of Git if you don’t already have it. With GitHub Desktop, you get a command line version of Git with a robust GUI. Regardless of if you have Git installed or not, GitHub Desktop offers a simple collaboration tool for Git. You can learn more here.

  1. Navigate to the latest Git for Windows installer and download the latest version.
  2. Once the installer has started, follow the instructions as provided in the Git Setup wizard screen until the installation is complete.
  3. Open the windows command prompt (or Git Bash if you selected not to use the standard Git Windows Command Prompt during the Git installation).
  4. Type git version to verify Git was installed.

Note: git-scm is a popular and recommended resource for downloading Git for Windows. The advantage of downloading Git from git-scm is that your download automatically starts with the latest version of Git included with the recommended command prompt, Git Bash . The download source is the same Git for Windows installer as referenced in the steps above.

Most versions of MacOS will already have Git installed, and you can activate it through the terminal with git version . However, if you don’t have Git installed for whatever reason, you can install the latest version of Git using one of several popular methods as listed below:

Install Git From an Installer

  1. Navigate to the latest macOS Git Installer and download the latest version.
  2. Once the installer has started, follow the instructions as provided until the installation is complete.
  3. Open the command prompt «terminal» and type git version to verify Git was installed.

Note: git-scm is a popular and recommended resource for downloading Git on a Mac. The advantage of downloading Git from git-scm is that your download automatically starts with the latest version of Git. The download source is the same macOS Git Installer as referenced in the steps above.

Читайте также:  Linux журнал подключенных устройств

Install Git from Homebrew

Homebrew is a popular package manager for macOS. If you already have Homwbrew installed, you can follow the below steps to install Git:

  1. Open up a terminal window and install Git using the following command: brew install git .
  2. Once the command output has completed, you can verify the installation by typing: git version .

Fun fact: Git was originally developed to version the Linux operating system! So, it only makes sense that it is easy to configure to run on Linux.

You can install Git on Linux through the package management tool that comes with your distribution.

  1. Git packages are available using apt .
  2. It’s a good idea to make sure you’re running the latest version. To do so, Navigate to your command prompt shell and run the following command to make sure everything is up-to-date: sudo apt-get update .
  3. To install Git, run the following command: sudo apt-get install git-all .
  4. Once the command output has completed, you can verify the installation by typing: git version .
  1. Git packages are available using dnf .
  2. To install Git, navigate to your command prompt shell and run the following command: sudo dnf install git-all .
  3. Once the command output has completed, you can verify the installation by typing: git version .

Note: You can download the proper Git versions and read more about how to install on specific Linux systems, like installing Git on Ubuntu or Fedora, in git-scm’s documentation.

Other Methods of Installing Git

Looking to install Git via the source code? Learn more here.

Get started with git and GitHub

Review code, manage projects, and build software alongside 40 million developers.

Subscribe to our newsletter

Get product updates, company news, and more.

Источник

Github Desktop Linux Install

github-desktop-linux-install-1

Depending on the version of Linux you are using, you can install github desktop Linux by following the following commands.

GitHub Desktop is not officially available for Linux, but you can still use a similar Git GUI client on Linux. Here are the steps to install a Git GUI client on Linux:

Ubuntu/Debian( Linux Mint, Kali Linux, Pardus, Knoppix, Deepin, SteamOS, MX Linux, PureOS, Raspbian)

First install our GPG certificate:

$ wget -qO - https://mirror.mwt.me/ghd/gpgkey | sudo tee /etc/apt/trusted.gpg.d/shiftkey-desktop.asc > /dev/null 

To setup the package repository, run one of these commands:

# if you want to use packagecloud.io $ sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/shiftkey/desktop/any/ any main" > /etc/apt/sources.list.d/packagecloud-shiftkey-desktop.list' # if you want to use the US mirror $ sudo sh -c 'echo "deb [arch=amd64] https://mirror.mwt.me/ghd/deb/ any main" > /etc/apt/sources.list.d/packagecloud-shiftkey-desktop.list' > /dev/null 

Then install GitHub Desktop:

$ sudo apt update && sudo apt install github-desktop > /dev/null 

You can also install immediately with gui without dealing with codes.

Fedora/Redhat/Centos

First install our GPG certificate:

$ sudo rpm --import https://mirror.mwt.me/ghd/gpgkey 

To setup the package repository, run one of these commands:

# if you want to use packagecloud.io $ sudo sh -c 'echo -e "[shiftkey]\nname=GitHub Desktop\nbaseurl=https://packagecloud.io/shiftkey/desktop/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://mirror.mwt.me/ghd/gpgkey" > /etc/yum.repos.d/shiftkey-desktop.repo' # if you want to use the US mirror $ sudo sh -c 'echo -e "[shiftkey]\nname=GitHub Desktop\nbaseurl=https://mirror.mwt.me/ghd/rpm\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://mirror.mwt.me/ghd/gpgkey" > /etc/yum.repos.d/shiftkey-desktop.repo'

Then install GitHub Desktop:

# if yum is your package manager $ sudo yum install github-desktop # if dnf is your package manager $ sudo dnf install github-desktop 

OpenSUSE

First install our GPG certificate:

$ sudo rpm --import https://mirror.mwt.me/ghd/gpgkey 

To setup the package repository, run one of these commands:

# if you want to use packagecloud.io $ sudo sh -c 'echo -e "[shiftkey]\nname=GitHub Desktop\nbaseurl=https://packagecloud.io/shiftkey/desktop/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://mirror.mwt.me/ghd/gpgkey" > /etc/zypp/repos.d/shiftkey-desktop.repo' # if you want to use the US mirror $ sudo sh -c 'echo -e "[shiftkey]\nname=GitHub Desktop\nbaseurl=https://mirror.mwt.me/ghd/rpm\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://mirror.mwt.me/ghd/gpgkey" > /etc/zypp/repos.d/shiftkey-desktop.repo' 

Then install GitHub Desktop:

 # if zypper is your package manager $ sudo zypper ref && sudo zypper in github-desktop

Arch Linux

Arch Linux users can install GitHub Desktop from the AUR.

Читайте также:  Драйвера linux asus eee pc

gnome-keyring is required and the daemon must be launched either at login or when the X server is started. Normally this is handled by a display manager, but in other cases following the instructions found on the Arch Wiki will fix the issue of not being able to save login credentials.

GitHub Desktop is also available cross-platform as a Flatpak and AppImage.

You can also install immediately with gui without dealing with codes.

Источник

berkorbay / github_desktop_ubuntu.sh

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

# # Follow this link for further updates to Github Desktop for Ubuntu https://github.com/shiftkey/desktop/releases/latest
# UPDATE (2022-11-07): Thanks to Sxvxgee’s message, the updated code is as follows
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.1.1-linux1/GitHubDesktop-linux-3.1.1-linux1.deb
# ## Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-3.1.1-linux1.deb
# UPDATE (2021-10-18): Thanks to Amin Yahyaabadi’s message, the updated code is as follows
# sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.9.3-linux3/GitHubDesktop-linux-2.9.3-linux3.deb
# ## Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
# sudo gdebi GitHubDesktop-linux-2.9.3-linux3.deb
# UPDATE (2021-03-05): Thanks to PaoloRanzi81’s comment, the updated code is as follows https://gist.github.com/PaoloRanzi81
# sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.6.3-linux1/GitHubDesktop-linux-2.6.3-linux1.deb
# ## Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
# sudo gdebi GitHubDesktop-linux-2.6.3-linux1.deb
# # Initial post
# sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.1.0-linux1/GitHubDesktop-linux-2.1.0-linux1.deb
# sudo gdebi GitHubDesktop-linux-2.1.0-linux1.deb

Источник

Оцените статью
Adblock
detector