How to add multiple files to Git at the same time

后端 未结 10 644
半阙折子戏
半阙折子戏 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-29 18:24

    Simply use single quotations around each file name to ensure any with spaces work as expected

    git add 'file1' 'file2' 'file3' 
    

提交回复
热议问题