윈도우(window)에서 깃허브 관리하기
깃허브 편하게 써보자!
깃허브 초기 설정
파일을 관리하는 깃(git)의 초기 설정밋 사용방법을 정리한 글 입니다.
cmd에서 git 버전 확인하기
cmd(명령 프롬프트)에서 git -v
는 깃 버전을 확인하는 명령어입니다.
1
2
git -v
git version 2.44.0.windows.1
cmd에서 git 정보 확인하기
cmd(명령 프롬프트)에서 git config --list
는 깃에 등록되어있는 정보를 확인하는 명령어입니다.
1
2
3
4
5
6
7
8
9
git config --list
...
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
user.name=이름
user.email=이메일@gmail.com
cmd에서 git 정보 확인하기
cmd(명령 프롬프트)에서 git config --list
는 깃에 등록되어있는 정보를 확인하는 명령어입니다.
1
2
3
4
5
6
git config --list
...
user.name=이름
user.email=이메일@gmail.com
cmd에서 git 파일 상태 확인하기
cmd(명령 프롬프트)에서 git status
는 현재 폴더에 파일 상태를 확인하는 명령어입니다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: asset/css/style.css
modified: asset/css/style.css.map
modified: asset/css/style.scss
modified: quiz/asset/css/quiz.css
modified: quiz/asset/css/quiz.css.map
modified: quiz/asset/css/quiz.scss
modified: quiz/quiz06.html
Untracked files:
(use "git add <file>..." to include in what will be committed)
effect/
quiz/quiz.md
no changes added to commit (use "git add" and/or "git commit -a")
cmd에서 git 파일 작업목록에 올리기
cmd(명령 프롬프트)에서 git add -A
는 위에서 확인된 변경된파일을 작업 목록에 추가하는 명령어입니다.
1
git add -A
cmd에서 git 파일 커밋(commit)하기
cmd(명령 프롬프트)에서 git commit -m "커밋설명문구"
는 위에서 작업 목록에 추가된 파일을 저장하는 명령어입니다.
1
git commit -m "update"
cmd에서 git 파일 푸쉬(push)하기
cmd(명령 프롬프트)에서 git push -u origin main
는 위에서 저장된 작업 목록의 파일을 저장소에 밀어넣는 명령어입니다.
1
git push -u origin main
This post is licensed under CC BY 4.0 by the author.