Closed2

Mac環境設定時のめも📝

jimiijimii

初期設定 + アプリインストール

基本は以下の記事を参考にbrewでインストール
https://zenn.dev/miyasic/articles/81f5fe3e3b060c

brew list
==> Casks
adobe-acrobat-reader	applite			coteditor		figma			google-japanese-ime	postman			tableplus
alt-tab			arc			deepl			fuwari			karabiner-elements	raycast			visual-studio-code
amazon-q		chatgpt			docker			google-chrome		notion			rectangle		warp
jimiijimii

git設定

以下のドキュメントに沿って実施。
https://docs.github.com/ja/get-started/getting-started-with-git/set-up-git

  1. ユーザー名、メールアドレス、エディタの設定
    git config --global user.name "<ユーザー名>"
    git config --global user.email "<メールアドレス>"
    git config --global core.editor "code  --wait"
    
  2. GitからGitHub認証
    GitHub CLIを使ってやる
    brew install gh
    
    gh auth login
    ? What account do you want to log into? GitHub.com
    ? What is your preferred protocol for Git operations on this host? HTTPS
    ? Authenticate Git with your GitHub credentials? Yes
    ? How would you like to authenticate GitHub CLI? Login with a web browser
    
    ! First copy your one-time code: <認証コード>
    Press Enter to open github.com in your browser...
    ✓ Authentication complete.
    - gh config set -h github.com git_protocol https
    ✓ Configured git protocol
    ✓ Logged in as <ユーザー名>
    
  3. その他設定
    global ignore 設定
    mkdir ~/.config/git
    touch ~/.config/git/ignore
    
    ~/.config/git/ignore
    .DS_Store
    
    git 日本語ファイル名をエスケープせずに表示
    git config --global core.quotepath false
    
    git ファイル名の大文字・小文字の変更を検知
    git config --global core.ignorecase false
    

参考
https://qiita.com/ucan-lab/items/aadbedcacbc2ac86a2b3
https://docs.github.com/ja/get-started/getting-started-with-git/caching-your-github-credentials-in-git
https://git-scm.com/docs/gitignore

このスクラップは5ヶ月前にクローズされました