깃랩이나 깃허브에 올라가있는 프로젝트 로컬에 다운로드

cmd 창 이동 -> c:\>git clone http://gitlab.company.co.kr:34080/develop/project.git



 

 

깃랩이나 깃허브에 올라가있는 프로젝트중에 특정 버전으로 다운로드

cmd 창 이동 -> 우선 git clone 하고

git reset --hard 특정버전

ex ) git reset --hard 52342342sqee233244kklksdfsdfsdfe

특정버전은 아래 빨간 복사버튼에서 확인가능

 

 

 

로컬폴더 깃랩이나 깃허브에 올리기

cmd 창 이동 -> 업로드할 폴더로 cd 명령어 통해서 이동

1. git init

2. git status

3. git add .

4. git commit -m "커밋메세지"

5. git remote remove

6. git remote add origin "깃허브주소"

7. git remote -v (깃허브주소 확인용도)

8. git push -u origin master --force (master까지 입력하면 안될때도 있어서 --force 붙임) (master 는 branch 이름/develop이어도 된다.)

+ Recent posts