how to git commit a whole folder?

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

    OR, even better just the ol' "drag and drop" the folder, onto your repository opened in git browser.

    1. Open your repository in the web portal , you will see the listing of all your files. If you have just recently created the repo, and initiated with a README, you will only see the README listing.

    2. Open your folder which you want to upload. drag and drop on the listing in browser. See the image here.

提交回复
热议问题