How to use gitignore command in git

前端 未结 7 872
天命终不由人
天命终不由人 2021-01-29 18:27

I\'m working first time on git. I have pushed my branch on github and it pushed all the library and documents into the github. Now what can I do and how can I use gitignore comm

7条回答
  •  梦如初夏
    2021-01-29 18:58

    If you don't have a .gitignore file. You can create a new one by

    touch .gitignore
    

    And you can exclude a folder by entering the below command in the .gitignore file

    /folderName
    

    push this file into your git repository so that when a new person clone your project he don't have to add the same again

提交回复
热议问题