How to add multiple files to Git at the same time

后端 未结 10 795
半阙折子戏
半阙折子戏 2021-01-29 18:12

This will be my first git use. I have added new files ( a lot ) to the folder/project ( git local repository).

I went through online tutorials and forums and see i can do

10条回答
  •  耶瑟儿~
    2021-01-29 18:24

    If you want to add multiple files in a given folder you can split them using {,}. This is awesome for not repeating long paths, e.g.

    git add long/path/{file1,file2,...,filen}
    

    Beware not to put spaces between the ,.

提交回复
热议问题