Skip to content

Commit 9631c17

Browse files
author
seungwonme
committed
Modified README.md
1 parent 463b716 commit 9631c17

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# Git
2+
3+
[Git Reference](https://git-scm.com/docs)
4+
5+
`git help`, `man git`, `git <command> --help` 명령어를 통해 각 명령어의 사용법을 확인할 수 있다.
6+
7+
## Git Command Workflow
8+
9+
![](./img/GitWorkflow.png)
10+
11+
## Git Branch Model
12+
- [{Git,Github,Gitlab} Flow 1](https://ujuc.github.io/2015/12/16/git-flow-github-flow-gitlab-flow/)
13+
- [{Git,Github,Gitlab} Flow 2](https://wiki.yowu.dev/ko/dev/Git/about-git-github-gitlab-flow)
14+
- [Trunk Based Development](https://trunkbaseddevelopment.com)
15+
- [Trunk Based Development 기술 블로그](https://tech.mfort.co.kr/blog/2022-08-05-trunk-based-development/)
16+
17+
## Git Command
18+
19+
### restore
20+
- `git restore <modified file>` : 파일을 수정하기 전 상태로 되돌린다.
21+
- `git restore --staged <file>` : 스테이징된 파일을 언스테이징한다.
22+
- `git restore --source=<hash> <file>` : 특정 커밋의 파일을 수정하기 전 상태로 되돌린다.
23+
24+
### fetch
25+
- `git fetch` : 원격 저장소의 변경사항을 로컬 저장소로 가져온다.
26+
127
# Github
228

329
## Github Pages

img/GitWorkflow.png

95.4 KB
Loading

0 commit comments

Comments
 (0)