강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

Jieun님의 프로필 이미지
Jieun

작성한 질문수

팀 개발을 위한 Git, GitHub 입문

첫 번째 버전 만들기

add 시 지정하지 않은 파일도 올라갈 때

작성

·

219

0

안녕하세요 유림님!
 
똑같이 코드를 작성했는데 add 에 넣은 readme.md 파일 뿐 아니라 다른 html 도 같이 올라가네요ㅜ 아래 git bash 명령어를 그대로 복사해왔는데 혹시 제가 잘못한 것이 있을까요?
 
감사합니다!
 
USER@DESKTOP-MG9F3FB MINGW64 ~/Desktop/gitprac/boxiting-cat $ git init Initialized empty Git repository in C:/Users/USER/Desktop/gitprac/boxiting-cat/.git/ USER@DESKTOP-MG9F3FB MINGW64 ~/Desktop/gitprac/boxiting-cat (master) $ ls index.html readme.md USER@DESKTOP-MG9F3FB MINGW64 ~/Desktop/gitprac/boxiting-cat (master) $ ls -al total 9 drwxr-xr-x 1 USER 197121 0 Oct 2 21:47 ./ drwxr-xr-x 1 USER 197121 0 Oct 2 21:28 ../ drwxr-xr-x 1 USER 197121 0 Oct 2 21:47 .git/ -rw-r--r-- 1 USER 197121 132 Oct 2 21:47 index.html -rw-r--r-- 1 USER 197121 0 Oct 2 21:47 readme.md USER@DESKTOP-MG9F3FB MINGW64 ~/Desktop/gitprac/boxiting-cat (master) $ git add readme.md USER@DESKTOP-MG9F3FB MINGW64 ~/Desktop/gitprac/boxiting-cat (master) $ git commit -m "description added" [master (root-commit) d916d11] description added 2 files changed, 10 insertions(+) create mode 100644 index.html create mode 100644 readme.md USER@DESKTOP-MG9F3FB MINGW64 ~/Desktop/gitprac/boxiting-cat (master) $

답변 1

0

진유림님의 프로필 이미지
진유림
지식공유자

오잉 너무 이상하네요

git status 한번 치시고 캡쳐해주실 수 있나요?

Jieun님의 프로필 이미지
Jieun

작성한 질문수

질문하기