• Home
  • About
    • Seokmin.Lee photo

      Seokmin.Lee

      Hello, I am a master's student in the Department of Convergence Security (Samsung Advanced Security) at Korea University.After graduation, I am expected as a security developer or researcher member of Samsung SDS.

    • Learn More
    • LinkedIn
    • Github
  • Posts
    • All Tags

[git]특정파일 제외하고 commit하기

21 Mar 2022

  1. 특정파일을 제외하고 commit 하고자 한다면, .gitingnore이라는 파일을 만들면된다.
  2. 해당 파일 내부에 다음과 같이 # manually ignored를 선언해 준뒤, 밑칸부터 제외할 파일들을 적어주면된다.

image

  1. 그리고 일반적으로 git add .를 수행해주면 gitignore 파일에 적혀있는 파일 이외에 모든 파일들이 commit 준비 상태가 정상적으로 된다.


gitetc Share Tweet +1