주 메뉴 열기

wwiki β

바뀜

Git

562 바이트 추가됨, 2022년 1월 24일 (월) 11:12
update
== checkout ==
브랜치간에 전환하거나 작업 디렉토리를 복구한다.
$ git checkout {브랜치명}
== branch ==
=== checkout --delete ===브랜치 전환 $ git checkout {브랜치명}branch --delete <branch-name>
== fetch ==
$ git submodule init
$ git submodule update
</syntaxhighlight> === 서브모듈 수정 ===master로 checkout하지 않고 서브모듈을 수정했다면 변경사항을 commit하고 다음 명령으로 변경사항을 유지한 채 새 브랜치를 생성한다. $ git branch <new-branch-name> f496c73<new-branch-name> 이름을 일시적으로 사용한다면 temp정도를 사용할 수 있다. master로 체크아웃한 후에 merge한다.<syntaxhighlight lang="bash">$ git checkout master$ git merge temp<br /syntaxhighlight>임시 브랜치를 삭제하려면 git branch명령을 사용할 수 있다.
[[분류:명령어]]
[[분류:프로그래밍]]
편집
2,431