Github CLI 써보기
GitHub에 접근할때 git만 사용했는데 github에서 제공하는 인터페이스를 써본다.
https://cli.github.com/manual/
git 으로 하는것과 무슨차이가 있겠나 싶긴했는데
gh를 처음에 설정하는 귀찮음을 동반하지만 gh로 로그인을 할때 API로 한번 인증해두면 코드 가져올때 나쁘지 않은것 같다.
- gh auth login
github에 있는 repo 당겨오는 예시
gh repo clone johlim/hello-world
cd hello-world
git log --graph
* commit 13b14e553b2c7a8fb3cff5a92e0542217a3dc7fe (HEAD -> master, origin/master, origin/HEAD)
| Author: johlim <johlim@gmail.com>
| Date: Mon Nov 27 02:41:52 2023 +0900
|
| add another vimrc
|
* commit 4fa1dbda8cf188b780835227c460ab250223ab60
| Author: johlim <johlim@users.noreply.github.com>
| Date: Thu Apr 5 09:49:35 2018 +0900
|
| update .vimrc
|
* commit 241bf7b562d530f372976cd797cd481707565627
| Author: jhlim@dellserver <jhlim@dellserver>
| Date: Fri Oct 23 01:13:02 2015 +0900
|
| int .vimrc
|
* commit c3832b1c3ee5d8b521800d1f8107eab609b9c990
|\ Merge: 00af2a7 dd4f97c
| | Author: johlim <johlim@users.noreply.github.com>
| | Date: Mon May 4 13:58:10 2015 +0900
| |
| | Merge pull request #2 from johlim/readme-edits
| |
| | Finish Readme
| |
| * commit dd4f97c3bb6967ba9ca2b257ed72e93fa24bd7e1
|/ Author: johlim <johlim@users.noreply.github.com>
| Date: Mon May 4 13:32:13 2015 +0900
|
| Finish Readme
|
* commit 00af2a7e4ebe5afbe19485e15e89d3df9157c4c1
| Author: johlim <johlim@users.noreply.github.com>
| Date: Mon May 4 13:25:04 2015 +0900
|
| Update README.md
|
* commit c733a446b63258dd9989fa835c1af75e33ab8a0c
Author: johlim <johlim@gmail.com>
Date: Mon May 4 12:47:51 2015 +0900
Initial commit
댓글