100세까지 코딩
100세까지 코딩
« 2025/02 »
일 |
월 |
화 |
수 |
목 |
금 |
토 |
|
|
|
|
|
|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
|
관리 메뉴
100세까지 코딩
Git&GitHub 시작 본문
GitHub
Git&GitHub 시작
100세까지 코딩
2024. 2. 15. 02:34
1. git init
- .git이라는 숨겨진 폴더 생성된다 == 로컬 저장소
- 한 폴더에 하나의 로컬 저장소만 유지하기!
git init
2. git add
git add README.md
3. git commit -m “~~~”
git commit -m “기능 구현”
4. git log
git log
5. git remote add origin 깃허브 주소
- 내 컴퓨터 로컬 폴더에 GitHub 저장소 주소 알려주기
git remote add origin https://github.com/아이디/이름.git
6. git push
git push origin master
7. git clone 깃허브 주소 .
- 내 컴퓨터에 폴더 만들고 Github의 저장소 받아오기
- 끝에 . 찍으면 현재 폴더, 안 찍으면 새 폴더
git clone https://github.com/아이디/이름.git .
8. git pull origin master
git pull origin master
9. Collaborator
- 저장소에 push 권한 주는 것
- 해당 레포지토리에 입장 → Settings → Manage access → Invite a collaborator