git등록
· 396 B · Text
Raw
커맨드 라인에서 새 레포리지터리 생성
```
touch README.md
git init
git checkout -b main
git add README.md
git commit -m "first commit"
git remote add origin https://gitea.rsonesoft.com/user/project.git
git push -u origin main
```
커맨드라인에서 기존 레포지터리 푸시
```
git remote add origin https://gitea.rsonesoft.com/user/project.git
git push -u origin main
```
| 1 | 커맨드 라인에서 새 레포리지터리 생성 |
| 2 | ``` |
| 3 | touch README.md |
| 4 | git init |
| 5 | git checkout -b main |
| 6 | git add README.md |
| 7 | git commit -m "first commit" |
| 8 | git remote add origin https://gitea.rsonesoft.com/user/project.git |
| 9 | git push -u origin main |
| 10 | ``` |
| 11 | |
| 12 | 커맨드라인에서 기존 레포지터리 푸시 |
| 13 | ``` |
| 14 | git remote add origin https://gitea.rsonesoft.com/user/project.git |
| 15 | git push -u origin main |
| 16 | ``` |