사용자 도구

사이트 도구


wiki:miscellaneous:git_add_option:git_add_asterisk_vs_git_add_period

git add *(asterisk) VS git add .(period)

  • description : git add *(asterisk) VS git add .(period)
  • author : 오션
  • email : shlim@repia.com
  • lastupdate : 2022-10-28 Fri


git add *(asterisk) VS git add .(period)

add * means add all files in the current directory, except for files whose name begin with a dot. This is your shell functionality and Git only ever receives a list of files.

add *는 이름이 점으로 시작하는 파일을 제외하고 현재 디렉토리에 있는 모든 파일을 추가한다는 의미입니다. 이것은 쉘 기능이며 Git은 파일 목록만 수신합니다.


add . has no special meaning in your shell, and thus Git adds the entire directory recursively, which is almost the same, but including files whose names begin with a dot.

add .는 쉘에서는 특별한 의미가 없으므로, Git은 전체 디렉토리를 재귀적으로 추가합니다. 이는 (git add *와) 거의 동일하지만 이름이 점으로 시작하는 파일을 포함합니다.\\


하기 표 참조


[git] .gitignore 변경 반영하기

/var/services/web/dokuwiki/data/pages/wiki/miscellaneous/git_add_option/git_add_asterisk_vs_git_add_period.txt · 마지막으로 수정됨: 2023/01/13 18:44 (바깥 편집)