【发布时间】:2016-12-15 11:41:12
【问题描述】:
我想在发布新版本之前检查是否有人修改了我的文件(同事 -> 修补程序或黑客 -> hack)。
是否可以在 capistrano 版本中通过 git status 查看更改的文件?
$ ls -l
total 21692
lrwxrwxrwx 1 user www-data 55 Dec 14 14:31 current -> /path/to/my/releases/20161214132953
drwxr-xr-x 7 user www-data 4096 Dec 14 14:31 releases
drwxr-xr-x 7 user www-data 4096 Aug 18 14:05 repo
-rw-r--r-- 1 user www-data 121235 Dec 14 14:31 revisions.log
drwxr-xr-x 5 user www-data 4096 Dec 8 2014 shared
$ cd current
$ git status
fatal: Not a git repository (or any of the parent directories): .git
$ cd ../repo
$ git status
fatal: This operation must be run in a work tree
【问题讨论】:
标签: git capistrano