GitHub

Codespaces

If the dotfiles repository for codespaces contains an install script then the dotfiles do not get sym linked see docs

gh cli

Command reference Installation, also see installation more documentation, here

curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && sudo apt update && sudo apt install gh -y

list repos

gh repo list

Create a public repository and set it up to sync with git in the current directory

gh repo create -s=. --public --remote=upstream
git remote add origin [email protected]:<owner>/<project>.git
git branch -M main
git push -u origin main

the gh command creates a repo with the source (s) at the current directory, makes it public and pushes it to github.

Last updated