LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-gh-pages

Create a GitHub Pages orphan branch

TLDR

Create a gh-pages branch
$ git gh-pages
copy

SYNOPSIS

git gh-pages

DESCRIPTION

git gh-pages creates and sets up a gh-pages branch for GitHub Pages hosting. This is a git-extras command that automates the creation of an orphan branch with an empty history, suitable for hosting static websites independent of the main project history.The command creates the orphan branch, removes all tracked files, and makes an initial empty commit. After creation, the gh-pages branch can be populated with HTML, CSS, and JavaScript files. When pushed to GitHub, the repository content becomes accessible as a website at https://username.github.io/repository.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Requires the git-extras package to be installed. The command switches the working directory to the new gh-pages branch. Modern GitHub Pages can also deploy from a subdirectory (e.g., /docs) on the main branch or via GitHub Actions, making the orphan branch approach less common than it once was.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid