Skip to content

Instantly share code, notes, and snippets.

@malkab
Last active May 13, 2021 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malkab/d6e69d2dc52d7a542981830aee3492b8 to your computer and use it in GitHub Desktop.
Save malkab/d6e69d2dc52d7a542981830aee3492b8 to your computer and use it in GitHub Desktop.
GitHub Stuff

Gist Recipes

Search your own Gist:

user:malkab ssh

GitHub Pages

Steps to add a custom domain like subdomain.domain.io from GoDaddy managed domain:

  • put a CNAME to for the subdomain to the user's account at GitHub at GoDaddy: subdomain > user.github.io

  • introduce custom domain in GitHub: subdomain.domain.io

Wait until propagation, and activate HTTPS. Check DNS with:

dig cell.37north.io +nostats +nocomments +nocmd

Migrating to GitHub

Migrating from other platforms like GitLab to GitHub:

# Review repo and check for big files
mlkgitlfssearch
# Rename old origin
git remote rename origin origin-old
# Add new origin
git remote add origin git@github.com:user/repo.git
# Rename master to main
git branch -M main
# Push
git push -u origin main
# Push all branches
git push --all origin
# Drop old remote
git remote rm origin-old
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment