Skip to content

Instantly share code, notes, and snippets.

View NiklasPeterson's full-sized avatar

Niklas Peterson NiklasPeterson

View GitHub Profile
@NiklasPeterson
NiklasPeterson / gh-update.sh
Last active October 5, 2022 11:47
How to install the GitHub CLI in terminal without Homebrew
#!/bin/bash
echo "This will install the GitHub CLI (gh) onto your system"
echo "When this is done, you'll have a new 'gh' command line tool..."
echo "in your /usr/local/bin directory. On most Mac and Linux systems..."
echo "That directory will be in your 'PATH' environment variable..."
echo "If it isn't, please add it. You can temporarily do so by running this:"
echo "\n export PATH=\"/usr/local/bin:\$PATH\""
RELEASE=$1
@NiklasPeterson
NiklasPeterson / changing-git-author.md
Last active May 25, 2021 07:45
A collection of scripts that helps you change git author on commits

Changing git author info (for git commits)

Before running this script, you'll need:

The old email address that appears in the author/committer fields that you want to change The correct name and email address that you would like such commits to be attributed to

1. Open Terminal.