Obsidian/Recognition/Tools/GitHub/CLI에서 Git 사용.md

25 lines
637 B
Markdown
Raw Normal View History

2023-08-15 09:22:43 +00:00
``` shell
# clone
2023-08-27 11:14:30 +00:00
git clone http://123.111.146.235:9070/MonHun/EyeGW-ASDE_New.git # 저장소 경로
2023-08-15 09:22:43 +00:00
# push
git config --global user.name "MonHun"
git config --global user.email "mh@monhun.com"
2023-08-27 11:14:30 +00:00
# safe directory 등록
git config --global --add safe.directory /storage/self/primary/Movies/GitRepositories/Obsidian
## 서버의 내용을 로컬로 가져온다.
2023-08-15 09:22:43 +00:00
git pull origin main # 브런치 이름 (main, master)
2023-08-27 11:14:30 +00:00
### 계정과 패스워드 입력
## 로컬의 새로 추가된 파일들을 '추가'
2023-08-15 09:22:43 +00:00
git add .
2023-08-27 11:14:30 +00:00
## 변경된 내용 커밋
2023-08-15 09:22:43 +00:00
git commit -m "커밋 메시지"
git push origin main # 브런치 이름 (main, master)
```