How to commit & push selected files but not all in Git

前端 未结 2 1883
礼貌的吻别
礼貌的吻别 2021-01-20 02:53

I have a git repo with two branches: develop and master. I work mostly at develop and when files are ready (sometimes not so sticky to

2条回答
  •  一个人的身影
    2021-01-20 03:21

    Use terminal to commit selected file : like: you have 100 files (10 type)

    git add *.* all file

    git add *.jpg all jpg file

    $ git add . # add to index only files created/modified and not those deleted

    $ git add -u # add to index only files deleted/modified and not those created

    you can use source tree for all git work.

提交回复
热议问题