How do I get a list of all unversioned files from SVN?

后端 未结 5 792
别那么骄傲
别那么骄傲 2020-11-30 20:38

Sometimes you\'re developing and you decide to commit, forgetting you created a few files on your project. Then a few days down the line your buddy gets your build out of Su

5条回答
  •  半阙折子戏
    2020-11-30 21:23

    Use the svn status command:

    svn status | grep ^?
    

    Files that are not versioned are indicated with a ? at the start of the line.

    If you find that you always have some specific files that should not be added to the repository (for example, generated binaries), you should set up the svn:ignore property on the containing directory so these files won't keep showing up when using svn status.

提交回复
热议问题