본문 바로가기

Python_Beginer/GIT

[GIT]Repository(저장소)

반응형

1. 저장소(Repository)

: 스테이지에서 대기하고 있던 파일들을 버전으로 만들어 저장하는 곳

 

2. 커밋(Commit)

: 버전을 만드는 것

3. git commit -m "메시지"

$ git commit -m "message1"

[master (root-commit) 0f4285b] message1
 1 file changed, 1 insertion(+)
 create mode 100644 hello.txt

 

4. 깃 상태 확인

$ git status

On branch master
nothing to commit, working tree clean

 

5. 저장된 버전 확인

$ git log

commit 0f4285bedfbf470de8f325c6763e3a76713c4aa7 (HEAD -> master)
Author: AnKiWoong <ankiwoong@gmail.com>
Date:   Thu Jan 2 20:35:37 2020 +0900

    message1

 

반응형

'Python_Beginer > GIT' 카테고리의 다른 글

[GIT]Git Log(커밋 기록 확인)  (0) 2020.01.03
[GIT]Staging + Commit(스테이징 + 커밋)  (0) 2020.01.02
[GIT]Stage(스테이지)  (0) 2020.01.02
[GIT]Working Tree(작업 트리)  (0) 2020.01.02
[GIT]Git Initialization(깃 초기화)  (0) 2020.01.02