- Open
Terminal - Run the command
sudo apt-get update - Run the command
sudo apt-get install gitorsudo apt-get install git-core - Run
git --versionto check the version of git installed and verify installation
- Right-Click on
My Computer/This PCand Click onProperties - Check the architecture of your operating system (32 bit or 64 bit)
- Visit Git SCM Windows and download
Git for Windows Setupfile (your download might automatically start) for your version of opearting system - Double-Click the Setup file (.exe) and proceed with the installation
- Use all default settings/options while proceeding and do not change any settings
- Do not install any existing software if prompted (Eg: Visual Studio Code)
- Open
Command Prompt - Run
git --versionto check the version of git installed and verify installation
- Visit Git SCM Mac and download
Git for Mac Setupfile (your download might automatically start). You should receive a file with.dmgor.pkgextension - Double-Click the Installer file (.dmg) and proceed with the installation
- Use all default settings/options while proceeding and do not change any settings
- Do not install any existing software if prompted (Eg: Visual Studio Code)
- Open
Terminal - Run
git --versionto check the version of git installed and verify installation
gh is available via Homebrew and MacPorts.
Install: brew install github/gh/gh
Upgrade: brew upgrade gh
Install: sudo port install gh
Upgrade: sudo port selfupdate && sudo port upgrade gh
gh is available via [scoop][], [Chocolatey][], and as downloadable MSI.
Install:
scoop bucket add github-gh https://github.com/cli/scoop-gh.git
scoop install gh
Upgrade: scoop update gh
Install:
choco install gh
Upgrade:
choco upgrade gh
Install and upgrade:
- Download the
.debfile from the [releases page][] sudo apt install ./gh_*_linux_amd64.debinstall the downloaded file
Install and upgrade:
- Download the
.rpmfile from the [releases page][] sudo dnf install gh_*_linux_amd64.rpminstall the downloaded file
Install and upgrade:
- Download the
.rpmfile from the [releases page][] sudo yum localinstall gh_*_linux_amd64.rpminstall the downloaded file
Install and upgrade:
- Download the
.rpmfile from the [releases page][] sudo zypper in gh_*_linux_amd64.rpminstall the downloaded file
Arch Linux users can install from the AUR: https://aur.archlinux.org/packages/github-cli/
$ yay -S github-cli- Visit GitHub
- Click on
Sign Upand fill in relevant details - Note: Pick a username that represents you or that sounds professional. Remember that this is permanent and it is not recommended to change this
- Be sure to remember your email that you have used, your username and password