[Basics_02] Setting

KateKim·2022년 8월 1일
0

Git-Github

목록 보기
3/3

Install Git

💲 git --version

Windows

📎 Git for Windows
https://git-scm.com/download/win

Mac

📎 Git for macOS
https://git-scm.com/download/mac

Configure Git Account

Name

💲 git config user.name                   
💲 git config --global user.name "Kate"   

Email

💲 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 .

Create Personal Access Token

  • Developer Settings > Personal Access Tokens

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

Explore Credential Store

// 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

Keychain Access

window- Credential Manager

SSH

  • Access > SSH and GPG keys

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

Install GitKraken

Git GUI
7 days free trial

  • Github Desktop, SourceTree, Tower, GitKraken, Ungit ...
profile
Defining me

0개의 댓글