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

前端 未结 7 1684
傲寒
傲寒 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:40

    git status #then file which you need to push git add example.FileExtension

    git commit "message is example"

    git push -u origin(or whatever name you used) master(or name of some branch where you want to push it)

提交回复
热议问题