how to git commit a whole folder?

后端 未结 6 769
囚心锁ツ
囚心锁ツ 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:08

    I ran into the same problem. Placing a forward slash after the folder name worked for me.

    ex: git add foldername/

提交回复
热议问题