(私はUbuntuを持っています) 私のコンピュータにはいくつかのgitリポジトリがあります。ですから、すべてのステータスを1つのコマンドに入れたいと思っています。 (:エコーpwd
:;;; CDの$ dの/ ..行うfind/-name ".git"
で日間@jmlane Gitの状況を、エコー; done)を、私はこの答えHow can I view all the git repositories on my machine?を見つけ権限のないすべての.gitメッセージを見つける方法はありますか?
しかし、私はたくさんのメッセージを "許可が拒否されました" 持っています。だから私は検索し、この回答を見つけたHow can I exclude all "permission denied" messages from "find"?しかし、私はどのように私の問題にそれを追加するのか分からない。
私はfind -name ".git" | grep -v "Permission non accordée"
を試してみましたが、私はちょうどfind -name ".git"
と同じ結果になります
find: «./.cache/dconf»: Permission non accordée
find: «./.dbus»: Permission non accordée
./Documents/these/programmes/programme_ccm/.git
./Documents/these/rapports/centralisation/.git
./Documents/these/rapports/Barberis_review_2016/.git
./Documents/these/rapports/biblio/.git
ノー結果
でfind -name ".git" 2> grep -v "Permission non accordée"
を試してみました。しかし、私はfind -name ".git" | grep "Permission non accordée"
をしようとしたとき、私は
find: «./.cache/dconf»: Permission non accordée
find: «./.dbus»: Permission non accordée
su/sudoでコマンドを使用して管理者権限で起動しようとしましたか? – vmchar
可能な複製https://stackoverflow.com/questions/762348/how-can-i-exclude-all-permission-denied-messages-from-find – AllAnimals
@vmchar私は今すぐ試しました:動作しません – Ccile