how to git commit a whole folder?

后端 未结 6 763
囚心锁ツ
囚心锁ツ 2021-01-30 20:33

Here is a folder, which contains a lot of .java files.

How can I git commit this folder ?

If I do the following commands

git add foldername
git c         


        
6条回答
  •  迷失自我
    2021-01-30 20:53

    To stage an entire folder, you'd enter this command:

        $git add .
    

    The period will add all files in the folder.

提交回复
热议问题