Monday, June 22, 2020

Learn GitHub CLI: Your Guide to GitHub from the Command Line

A Quickstart Guide to GitHub CLI

In this quickstart guide, you’ll learn GitHub CLI.

If you’re already familiar with Git commands, you’re obviously aware that you need to switch to the web browser in order to perform various actions on your GitHub repository. With the new GitHub CLI tool, you can execute many of these actions without leaving the command-line interface.

Setup

To get started, simply visit the installation page and find instructions on how to install GitHub CLI for your operating system. For Windows and macOS, you can use package managers to install and keep GitHub CLI up to date. For Linux users, you’ll need to download the package from the latest release page. There are Signed MSI installers for Windows users too, but be aware you have to re-download and update the tool manually if you opt for this. The easiest way for Windows users is to use the scoop package manager.

Below are snapshots of install instructions for each supported platform:

  • Windows:

    scoop bucket add github-gh https://github.com/cli/scoop-gh.git
    scoop install gh
    
  • macOS:

    brew install github
    
  • Debian/Ubuntu Linux:

    sudo apt install git && sudo dpkg -i gh_*_linux_amd64.deb
    
  • Fedora/Centos Linux:

    sudo yum localinstall gh_*_linux_amd64.rpm
    
  • Arch Linux:

    yay -S github-cli
    

On Windows, I would recommend the use of the Git Bash terminal. This interface will allow you to access common Linux commands and Bash features such as autocompletion. It’s also officially supported by Visual Studio Code via terminal integration.

After installing GitHub CLI, you’ll need to authenticate your account. Running any command will trigger this authentication process. For example, try gh repo view cli/cli. For first-time users, you’ll be prompted with the following:

GitHub authentication

Simply press the Enter key to start the process as illustrated below:

Gitub authorization

Once you provide your password, you’ll get a “Successfully authenticated GitHub CLI” message. You’re now able to interact with the GitHub platform via the command-line terminal. The next step is to implement autocomplete, which is optional. Simply add this line to your ~/.bash_profile:

eval "$(gh completion -s bash)"

You can also run the above command in your current terminal to get the autocomplete feature without restarting your terminal. To confirm it’s working, type gh repo, then press tab twice. It should show you four different commands you can append to the current repo command.

Command Structure

The gh command structure is tree-like and easy to remember. There are basically two levels of commands. The first level only consists of six commands:

Continue reading Learn GitHub CLI: Your Guide to GitHub from the Command Line on SitePoint.


by Michael Wanyoike via SitePoint

Top Banking Applications found packed with Security Flaws; Alarming News for iOS and Android Users!

Recently, Positive Technologies (a cybersecurity company) conducted a study on 14 well-reputed banking apps downloadable in both Android and iOS devices. Alarmingly, the results indicated that none of the applications came with a decent level of security. It was found out that every single...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Ali Siddiqui via Digital Information World

Users Are Complaining That Google And Apple Have Uploaded A COVID-19 Tracking App To Their Smartphones Without Permission, But It Is Not True

A lot of people are complaining on social media platforms, that Google and Apple have suddenly uploaded a coronavirus tracking application to their smartphones without their permission. Here, we will discuss what has actually happened. You may be receiving a lot of messages on your Facebook,...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Arooj Ahmed via Digital Information World

Website Inspiration: Brightful Meeting Games

Long scrolling Landing Page for a suite of fun icebreaker games to liven up remote meetings. Can really appreciate how there are no signups to get things going. Just hit the CTA button of the game you want to start.

Full Review


by Rob Hope @robhope via One Page Love

Masters 1987

Masters 1987
We've created a notable website for those who are usually out of sight. "1987 Masters" can make your event extraordinary
by via Awwwards - Sites of the day

How to Convert Leads Using Instagram Stories

Want to add an email signup link to your Instagram stories? Wondering how to access the swipe-up feature, even without having 10K followers? In this article, you’ll discover how to reach, warm up, and convert new leads into becoming email subscribers via Instagram Stories. #1: Leverage Your Followers and Tag Other Accounts to Reach a […]

The post How to Convert Leads Using Instagram Stories appeared first on Social Media Examiner | Social Media Marketing.


by Alex Beadon via Social Media Examiner | Social Media Marketing

Facebook Removed Nearly 9.6 Million Hate Speech Posts During The First Quarter Of This Year

The social media giant, Facebook has published the company’s biannual Community Standards Enforcement Report. The report displays the number of controversial posts Facebook removed from its platform. Facebook does not allow hate speech on its platform and considers hate speech as a violation of its...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Arooj Ahmed via Digital Information World