티스토리 뷰

Git

[Git] Remote Repository 강제 Pull

developer0hye 2021. 3. 15. 21:07

프로젝트 관리를

 

깃랩으로 하는 경우

 

git fetch --all

git reset --hard origin/master

git pull origin master

 

https://about.gitlab.com/blog/2021/03/10/new-git-default-branch-name/

 

The new Git default branch name

Why we're joining the Git community and updating "master" to "main".

about.gitlab.com

 

최근에 깃랩도 initial branch의 default 이름을 master -> main으로 바꿈

 

Every Git repository has an initial branch, which is the first branch to be created when a new repository is generated. Historically, the default name for this initial branch was master. This term came from Bitkeeper, a predecessor to Git. Bitkeeper referred to the source of truth as the "master repository" and other copies as "slave repositories". This shows how common master/slave references have been in technology, and the difficulty in knowing how the term master should be interpreted.

 

용어가 갖는 의미를 직관적으로 해석하기에 어렵기 때문인가봄.

 

깃헙으로 하는 경우

 

git fetch --all

git reset --hard origin/main

git pull origin main

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함