Engineering/DevOps

[형상관리] Gitea repository 생성

망고v 2025. 1. 7. 18:00

앞에서 설치한 Gitea에 신규 Reposiotry를 생성하고 형상관리 필요한 프로젝트를 추가한다. Gitea 로그인 후, Repository를 생성하면 아래 이미지와 같이 command line이 나오니 간편하게 연동 가능하다.

 

 

 

 

실제 수행한 명령어는 아래와 같으며 결과는 Gitea Console을 통해 간단히 확인 가능하다.

➜  iOS git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
/Users/joonhopark/workspace/securities/iOS/.git/ 안의 빈 깃 저장소를 다시 초기화했습니다

➜  iOS (master) ✗ git config user.name "mango"

➜  iOS (master) ✗ git checkout -b main
새로 만든 'main' 브랜치로 전환합니다

➜  iOS (main) ✗ git add .
..생략..
 warning: in the working copy of 'www/spin.js', LF will be replaced by CRLF the next time Git touches it

➜  iOS (main) ✗ git commit -m "first commit"
..생략..
 create mode 100644 www/spin.js
 
➜  iOS (main) ✗ git remote add origin http://localhost:3000/mango/iOS.git

➜  iOS (main) ✗ git push -u origin main
Username for 'http://localhost:3000': mango
Password for 'http://mango@localhost:3000':
오브젝트 나열하는 중: 5527, 완료.
오브젝트 개수 세는 중: 100% (5527/5527), 완료.
Delta compression using up to 12 threads
오브젝트 압축하는 중: 100% (5422/5422), 완료.
오브젝트 쓰는 중: 100% (5527/5527), 252.00 MiB | 10.20 MiB/s, 완료.
Total 5527 (delta 671), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (671/671), done.
remote: . Processing 1 references
remote: Processed 1 references in total
To http://localhost:3000/mango/iOS.git
 * [new branch]      main -> main
branch 'main' set up to track 'origin/main'.

 

 

'Engineering > DevOps' 카테고리의 다른 글

Jenkins 를 통한 SpringBoot Build w/Gradle  (0) 2025.04.22
[CICD] Jenkins 설치하기  (0) 2025.04.21
[minikube] 형상관리(Gitea) 설치  (0) 2025.01.03
Tekton 설치(minikube)  (0) 2024.06.11
Gradle 적용 및 Maven과 비교  (0) 2024.04.25