본문 바로가기
Programing/Git

[Git] 특정 File 업로드 방법

by 꾸압 2022. 6. 13.

# 작업 파일 목록 확인

git status 

 

# 기존 파일 변경 내역 확인

git diff

 

# 목록 재확인

git status

 

# 원하는 파일 업로드(1)

git add [경로 & 파일명]

 

# 업로드(2) 

git commit -m "[msg]" file1 file2

 


 

<참조> https://stackoverflow.com/questions/13479763/how-to-push-a-single-file-in-a-subdirectory-to-github-not-master

'Programing > Git' 카테고리의 다른 글

[Git] non-fast-forward 에러  (0) 2022.06.18
[GIT] Git 활용 예제  (0) 2022.05.30
[GIT] GitHub 프로젝트 보안  (0) 2022.05.16
[GIT] Git 활용 예제  (0) 2022.05.15

댓글