โ๏ธ TIL(Today I Learned)/๐ฐ 2023 Black Rabbit
[TIL/23]05.09.Tue.
TerryEHLee
2023. 5. 9. 23:50
Today I Studied
PS: Programmers/์ฝ๋ฉ๊ธฐ์ดํธ๋ ์ด๋/Lv0/Day7: ์ฝ๋ผ์ธ ์์ด ๋ง๋ค๊ธฐ
๋ง์ง์ถ์ฒ: WAGUWAGU
- topSection
Today I Leared
- gitHub ๊ด๋ จ
- ์๊ฒฉ์ฆ๋ช
- repo์ ์ต์ด Pull์ ํ ๋์ ์๊ฒฉ์ฆ๋ช ์ด ํ์ํจ
- GitHub ๊ณ์ ์ username/Password ๋ฐฉ์์ ์๊ฒฉ์ฆ๋ช ์ด ์ ๊ฑฐ๋์ด ํ ํฐ๋ฐ๊ธ ํํ์ ์๊ฒฉ์ฆ๋ช ์ด ํ์ํจ
- ํ ๊ทผ๋ฐ๊ธ์ ๋ ๊ฐ์ง ํํ๊ฐ ์๋๋ฐ fine-grained personal access tokens์ด ์ถ์ฒ๋๋ ๋ฐฉ์์ด๋ผ ํด๋น ๋ฐฉ์์ผ๋ก ํ ํฐ์ ๋ฐ๊ธ๋ฐ์
- ๊ทธ๋ฌ๋ ํ ํฐ์ผ๋ก๋ ์คํ์ด ๋์ง ์์.... Git Credintial Manager๋ฅผ ์ค์นํ์ฌ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํจ
- ํฐ๋ฏธ๋ ์ฌ์ฉ
- cd desktop/filename ํ์์ผ๋ก ๋๋ ํ ๋ฆฌ ์ค์
- ๋ด๊ฐ ๋ง๋ repository URL์ ๋ณต์ฌํ์ฌ git clone url: repository ๋ด์ฉ๋ค ๋ค์ด๋ก๋
- git init: ํ์ฌ ํ์ผ์ git์ ์ฌ๋ฆฌ๊ฒ ๋ค ์๋ฆผ
- git add -A : ํ ํ์ผ ์์ ๋ชจ๋ ๋ด์ฉ์ stagging
- git branch -b branch name: branch ์์ฑ ๋ฐ ํ branch switch
- git branch: ํ branch ํ์ธ
- git commit -m "message": commit
- git status: ํ ๋จ๊ณ ์ฒดํฌ
- git push origin branchName: push
- git checkout main: merge ์งํ ํ ์ต์ข branch ์ ํ
- git merge nameOfBranch: push๋ฅผ ์งํ ํ branch ์ต์ข merge
- ์๊ฒฉ์ฆ๋ช