search

Home  >  Q&A  >  body text

How to use git to add comments to each file pushed to github?

git commit -m"XXXX" In this way, every file in the folder has the same comments. What is a better way to add comments to each separate file?

为情所困为情所困2821 days ago936

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-05-02 09:49:52

    $ git add text/text1.txt
    $ git commit -m "text1"
    $ git add text/text2.txt
    $ git commit -m "text2"
    $ git push origin master
    

    Single add and separate commit testing are feasible. Other methods are unclear. But the message in the external folder will be the message submitted by the last commit.

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-02 09:49:52

    You can only submit it independently and add comments

    reply
    0
  • Cancelreply