Star_project
github mac 다운로드 맥 설치 환경 설정 본문
Homebrew
The Missing Package Manager for macOS (or Linux).
brew.sh
여기서 github 다운로드 > 주소 복사해서 터미널에서 (밑에 있음)
Mac OS 환경에서 Git 설치하기 - Mac git, github 셋팅 방법
포스팅 개요 이번 포스팅은 Mac OS에서 초기 git 환경을 셋팅하는 방법에 대해 작성합니다. Mac에 git 초기 설정을 하게 되면 github 등도 비밀번호 요구 없이 바로바로 이용할 수 있는 장점이 있습니
lsjsj92.tistory.com
참고해서 했다.
eomminjeong@eomminjeong-ui-MacBookAir ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" (git 다운로드)
==> Checking for `sudo` access (which may request your password).
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
==> The following existing directories will be made writable by user only:
/opt/homebrew/share/zsh
/opt/homebrew/share/zsh/site-functions
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod u+rwx /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /bin/chmod 755 /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown -R eomminjeong:admin /opt/homebrew
==> Downloading and installing Homebrew...
HEAD is now at 1d2782dce Merge pull request #11190 from gromgit/patch-2
Updated 1 tap (homebrew/core).
Warning: /opt/homebrew/bin is not in your PATH.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Add Homebrew to your PATH in /Users/eomminjeong/.zprofile:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/eomminjeong/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Run `brew help` to get started
- Further documentation:
eomminjeong@eomminjeong-ui-MacBookAir ~ % git config --global user.name "minjeongeom"
eomminjeong@eomminjeong-ui-MacBookAir ~ % git config --global user.email mjeom97@gmail.com
eomminjeong@eomminjeong-ui-MacBookAir ~ %
eomminjeong@eomminjeong-ui-MacBookAir ~ % git config --list
credential.helper=osxkeychain
user.name=minjeongeom
user.email=mjeom97@gmail.com
eomminjeong@eomminjeong-ui-MacBookAir ~ % cat ~/.ssh/id_rsa.pub
cat: /Users/eomminjeong/.ssh/id_rsa.pub: No such file or directory. (그러면 없다고 뜸)
eomminjeong@eomminjeong-ui-MacBookAir ~ %
eomminjeong@eomminjeong-ui-MacBookAir ~ % ssh-keygen
Generating public/private rsa key pair. (만들기~~) 계속 엔터
Enter file in which to save the key (/Users/eomminjeong/.ssh/id_rsa):
Created directory '/Users/eomminjeong/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/eomminjeong/.ssh/id_rsa.
Your public key has been saved in /Users/eomminjeong/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:AXKPNFvoFl27AJBTsDTas2GxLi7izDkpgZ/oDVVQCe8 eomminjeong@eomminjeong-ui-MacBookAir.local
The key's randomart image is:
+---[RSA 3072]----+
| oX*Oo... |
| +=XoO. . |
| . B=o.+ . |
| oo+o o . |
|. ..oE S . |
|o... |
|o=o. |
|B+* |
|o*.. |
+----[SHA256]-----+
eomminjeong@eomminjeong-ui-MacBookAir ~ % cat ~/.ssh/id_rsa.pub
복사해서 github > profile > SSH and GPG keys > new > 넣기
'github' 카테고리의 다른 글
| git 레퍼런스 (0) | 2021.04.18 |
|---|---|
| HEAD detached 오류 (0) | 2021.04.18 |
| Github readme 기본 내용 (0) | 2021.04.17 |