how to git commit a whole folder?

后端 未结 6 818
囚心锁ツ
囚心锁ツ 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 21:02

    You don't "commit the folder" - you add the folder, as you have done, and then simply commit all changes. The command should be:

    git add foldername
    git commit -m "commit operation"
    

提交回复
热议问题