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

(같은 사용자의 중간 판 하나는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{소문자}}
==개요==
==개요==
;git checkout
;git checkout
29번째 줄: 30번째 줄:
* [[git 명령어]]
* [[git 명령어]]
* [[git 브랜치 전환]]
* [[git 브랜치 전환]]
* [[git add 취소하기]]
* [[git clone 특정 릴리즈 가져오기]]
* [[git clone 특정 릴리즈 가져오기]]
* [[체크아웃]]
* [[체크아웃]]


[[분류: git]]
[[분류: git]]

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 }}