"Git checkout"의 두 판 사이의 차이

1번째 줄: 1번째 줄:
{{소문자}}
==개요==
==개요==
;git checkout
;git checkout

2020년 1월 18일 (토) 16:02 판

1 개요

git checkout
깃 체크아웃
  • 브랜치를 전환하거나, 작업트리파일을 원복하는 git 명령어

2 실습 1

git checkout 브랜치명

3 실습 2

root@zetawiki:~/workspace/hello# cat greet.txt
hello world
good morning
root@zetawiki:~/workspace/hello# git checkout HEAD greet.txt
root@zetawiki:~/workspace/hello# cat greet.txt
hello world

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}