How to avoid specifying absolute file path while git-add

前端 未结 6 760
名媛妹妹
名媛妹妹 2021-01-31 13:43

Using git add command becomes tedious once the file path becomes lengthy. For e.g. git add src_test/com/abc/product/server/datasource/manager/aats/DSManger.ja

6条回答
  •  广开言路
    2021-01-31 14:41

    For unix-like systems you can always use the star to point to files, e.g.

     git add *DSManager.java
    

    will include all DSManager.java files git can find within your source tree starting in your current working directory.

提交回复
热议问题