Skip to content

Instantly share code, notes, and snippets.

@hyunbinseo
Last active July 22, 2026 07:10
Show Gist options
  • Select an option

  • Save hyunbinseo/b05f2c69c2b5ab8f7573956c3628d556 to your computer and use it in GitHub Desktop.

Select an option

Save hyunbinseo/b05f2c69c2b5ab8f7573956c3628d556 to your computer and use it in GitHub Desktop.
Common Setup (Windows, Fedora)
gh auth login
gh auth setup-git # https://cli.github.com/manual/gh_auth_setup-git
gh auth switch
git config --global core.autocrlf false
git config --global core.eol lf
git config --global init.defaultBranch main
git config --global push.autoSetupRemote true
git config --global push.followTags true
# gh does not set git user information
# See https://github.com/cli/cli/issues/6096
git config --global user.name "Your Name" # Hyunbin Seo
git config --global user.email "you@example.com" # See https://github.com/settings/emails
git add --renormalize . # for existing repositories in CRLF
# git clone https://alice@github.com/mona/test
# if you want to always use the alice account for the mona/test GitHub repository
# https://github.com/git-ecosystem/git-credential-manager/blob/main/docs/multiple-users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment