목록remote (2)
컴공생의 다이어리
[Git] 원격 저장소 브랜치 삭제
[Git] 원격 저장소 브랜치 삭제 git bash창에서 명령어를 통해 원격 저장소 브랜치를 삭제하고 싶다면 아래 명령어를 입력해주면 된다. git push origin --delete {원격 저장소 브랜치명} # example : 원격 저장소의 temp 브랜치를 삭제 git push origin --delete temp https://www.lesstif.com/gitbook/git-delete-remote-branch-20776547.html git 원격지 브랜치 삭제(delete remote branch) www.lesstif.com
Development/Git
2022. 9. 10. 00:01
[Git] 원격 저장소(remote repository)의 branch를 로컬 저장소(local repository)로 가져오기
원격 저장소(remote repository)의 branch를 로컬 저장소(local repository)로 가져오기 로컬 저장소에 원격 저장소를 clone하면 원격 저장소의 모든 branch가 clone되는 것이 아니라 main branch만 clone된다. 이번 게시물은 원격 저장소의 branch를 로컬 저장소로 가져오는 방법에 대해 정리하고자 한다. 우선 로컬 저장소와 원격 저장소의 branch를 확인하기 위해서 아래 명령어를 입력한다. git branch -a 이때, 만일 clone한 이후에 다른 사람이 원격 저장소에 branch를 생성했을 수 있으니 한번씩 원격 저장소의 정보를 업데이트 해주는 아래 명령어를 한번씩 입력해주는 것이 좋다. git remote update 원격 저장소의 branch..
Development/Git
2021. 9. 30. 00:01