💲 git --version
📎 Git for Windows
https://git-scm.com/download/win
📎 Git for macOS
https://git-scm.com/download/mac
Name
💲 git config user.name
💲 git config --global user.name "Kate"
💲 git config user.email
💲 git config --global user.email "myMail@gmail.com"
When you configure the name and email, " ~/.gitconfig " will be modified accordingly.
💲 cat ~/.gitconfig
[user]
email = myMail@gmail.com
name = Kate
[credential]
helper = cache
Basic Commands
- Create files
💲 touch fileName- Create directory
💲 mkdir pathName- Open the files in the Finder (Mac)
💲 open .- Open the files in the File Explorer (Windows)
💲 start .- Open the files in VS code editor.
💲 code .
Personal access tokens are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line
📎 [Github Docs] Account Security
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
// mac 에서 제공하는 키체인 시스템 활용
💲 git config --global credential.helper osxkeychain
// 설치확인
💲 git config --global credential.helper
// 현재 계정 확인
💲 git credential-osxkeychain get
// 계정 로그아웃
💲 git credential-osxkeychain erase
// 키체인 추가 (로컬에서 깃 계정 로그인)
💲 git config credential.helper store
// 계정 변경시 unset
💲 git config --global --unset-all user.name
window- Credential Manager
To keep your credentials secure, you should regularly audit your SSH keys, deploy keys, and review authorized applications that access your account on GitHub.com.
📎 [Git Reference] credential-helpers
https://git-scm.com/doc/credential-helpers
📎 [Github Docs] Git Tools - Credential Storage
https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage
Git GUI
7 days free trial