본문 바로가기
utils/git and github

[Git] Git Summary (작성중)

by ds31x 2024. 5. 20.

git이란

2024.05.20 - [utils/git and github] - Git : 소개

 

git 설치 후 해줘야 하는 작업들

[Git] git 설치 후 우선 해줘야 하는 작업들 (tistory.com)


local repository 초기화

2024.05.20 - [utils/git and github] - [Git] init : local repository 생성.

 

현재 상태 확인하기

2024.05.20 - [utils/git and github] - [Git] git status

 

add (staging)

2024.05.20 - [utils/git and github] - [Git] git add

 

commit (repository로)

2024.05.20 - [utils/git and github] - [Git] commit

 

commit 수정하기 (amend)

2024.05.20 - [utils/git and github] - [Git] commit —amend

 

변경 이력 확인하기

2023.12.31 - [utils/git and github] - [git] log : commit history 살펴보기

 

변경 내용 확인하기

2024.05.20 - [utils/git and github] - [Git] git diff

 

파일 삭제 (stage에서)

2024.05.21 - [utils/git and github] - [Git] rm

 

파일 변경 (staging 겸해서)

2024.05.21 - [utils/git and github] - [Git] mv

 

restore (=unstage): commit 이전의 변경사항 취소하기

2024.01.01 - [utils/git and github] - [git] restore : 이전 상태로 되돌리기.

 

revert: commit 된 변경사항 취소하기

2023.12.30 - [utils/git and github] - [git] revert : 특정 commit 취소하기.

 

reset: commit 된 변경사항 취소하기 (revert보다 쉽지만, local repository에서만 사용하자)

2024.05.26 - [utils/git and github] - [Git] reset: 가장 쉬운 되돌리기. 단 공동작업에선 피하자.

 


branch란?

2024.05.26 - [utils/git and github] - [Git] git 에서 branch란?

 

branch 생성 및 삭제 (이름 변경 포함)

2023.12.30 - [utils/git and github] - [git] branch : branch를 생성하거나 확인 또는 삭제 및 변경

 

branch 전환

2023.12.31 - [utils/git and github] - [git] switch : branch 전환

 

branch 합치기

2024.05.26 - [utils/git and github] - [Git] merge: branch를 합침

 

branch 합칠 때 세가지 모드: 3-way, fast-forward and rebase.

2024.05.26 - [utils/git and github] - [Git] merge mode: merge and rebase.

 

tutorial

2024.05.26 - [utils/git and github] - [Git] Tutorial: 3-way merge, fast forward, and rebase

tutorial: rebase 상세.

2024.05.28 - [utils/git and github] - [Git] rebase: Tutorial


tag 달기

2024.01.01 - [utils/git and github] - [git] tag : 특정 commit을 가르키는 별명.

 


remote repository

2024.05.26 - [utils/git and github] - [Git] Remote Repository

 

remote repository 를 local로 복제하기

2024.05.27 - [utils/git and github] - [Git] clone: 원격저장소 복제

 

remote repository와 연결 및 연결된 remote repository 확인

2024.05.26 - [utils/git and github] - [Git] remote, remote add, remote show: 원격저장소와 연결

 

push

2024.05.26 - [utils/git and github] - [Git] push

 

pull and fetch

2024.05.26 - [utils/git and github] - [Git] pull and fetch

 

tutorial of remote repository

2024.05.26 - [utils/git and github] - [Git] Tutorial: remote repository


stash: 현재 작업 임시 저장.

2023.12.31 - [utils/git and github] - [git] stash : 현재 작업을 임시 저장

 

 

 

 

728x90

'utils > git and github' 카테고리의 다른 글

[Git] git 설치 후 우선 해줘야 하는 작업들  (0) 2024.05.21
[Git] git diff  (0) 2024.05.20
[Git] commit —amend  (0) 2024.05.20
[Git] commit  (0) 2024.05.20
[Git] git add  (0) 2024.05.20