2022년 4월 11일 월요일

Upload your unity project to gitlab(gitlab에 유니티 프로젝트 올리기)




gitlab에 유니티 프로젝트 올리기
Upload your unity project to gitlab


1. 주소창에 gitlab.com 입력합니다.
 (Enter gitlab.com in the address bar.)



2. gitlab에서 회원가입을 하고 로그인을 합니다.
(기존 구글회원가입이 되어있어 저는 구글로 했습니다.)
Register as a member in gitlab and log in.
(I have already registered as a Google member, so I used Google.)




3.New project 아이콘 클릭
(Click the New project icon)






4.빈프로젝트 생성
(Create an empty project)



5. 빈 프로젝트 이름 설정
(Set empty project name)



6.클론 클릭후 HTTPS 저장(Ctrl+C)
(Click Clone and save HTTPS (Ctrl+C))




7.아무 폴더에서 git Bash Here클릭
(Click git Bash Here in any folder)



8.git clone 명령어+복사한 HTTPS 주소 입력(shift+insert누르면 붙여넣기됨)
(git clone command + Enter the copied HTTPS address (press shift + insert to paste))



9.명령어 입력후 해당 저장소 폴더 생성되는것 확인
(Check that the storage folder is created after entering the command)

10.폴더안에 .git만 복사하거나 잘라내거나 하기
(Copying or cutting only .git in the folder)

11.원하는 UnityProject경로에 붙여넣고 해당 경로에서 다시 git bash로 터미널 열기
(Paste it in the desired UnityProject path and open the terminal again with git bash from that path)

12. 해당 경로에 .gitignore 파일도 추가(필수는 아님)
(필요없는 파일은 안올리는거라고 보시면됩니다)
Also add the .gitignore file to that path (not required)
(You can think of it as not uploading files you don't need)
Unity.gitignore DownLoad Here



13. 터미널에 명령어 순서대로 입력
git status로 확인
git add .
git commit -m "원하는 주석"
git push -u origin main

확인 끝~

(Enter the command sequence in the terminal
check with git status
git add .
git commit -m "any comment you want"
git push -u origin main

Confirmation done~)































 

댓글 없음:

댓글 쓰기

git rejected error(feat. cherry-pick)

 문제 아무 생각 없이 pull을 받지않고 로컬에서 작업! 커밋, 푸시 진행을 해버렷다. push에선 remote와 다르니 당연히 pull을 진행해라고 하지만 로컬에서 작업한 내용을 백업하지 않고 진행하기에는 부담스럽다(로컬작업 유실 가능성) 해결하려...