How to push a single file in a subdirectory to Github (not master)

前端 未结 7 1697
傲寒
傲寒 2020-12-23 13:56

I have changed a single file in a subdirectory of my repository and I want to push just that file to Github.

I\'ve made a small change to one file, and I don\'t wa

7条回答
  •  滥情空心
    2020-12-23 14:51

    Very simple. Just follow these procedure:
    1. git status
    2. git add {File_Name} //the file name you haven been changed
    3. git status
    4. git commit -m '{your_message}'
    5. git push origin master

提交回复
热议问题