Section 2. 시간 여행 - (4) SourceTree로 진행해보기

jaegeunsong97·2023년 3월 11일
0

[Inflearn] Git/Github

목록 보기
9/14
post-thumbnail

📕 변경사항 만들고 커밋하기


  • leopards.yaml 삭제
  • .gitignore*.config 추가
  • hello.txt 추가 (내용 자유)
  • 커밋 메시지: Commit with SourceTree

📕 revert


  • Add George to Tigers의 수정사항 되돌려보기
  • 해당 커밋에 마우스 우클릭 - 커밋 되돌리기

📕 reset


  • Replace Cheetas with Panthers 시점으로 되돌려보기
  • 해당 커밋에 마우스 우클릭 - ... 이 커밋으로 초기화
  • 선택지에서 Hard 선택

📕 Revert시 충돌 해결


  1. replace lions with leopards 커밋을 되돌리기합니다.

  1. 충돌이 일어남을 알려주는 경고창이 뜹니다.

  1. 스테이지되지 않은 leopards.yaml을 우클릭하고 충돌 해결에서 저장소 것을 선택합니다.

  1. 메시지를 입력하고 커밋을 하면 완료됩니다.

참조

https://www.yalco.kr/

profile
현재 블로그 : https://jasonsong97.tistory.com/

0개의 댓글

Powered by GraphCDN, the GraphQL CDN