私はgit pull
ディレクトリからルートユーザ経由でいくつかのリポジトリにしようとしています。 /root/
からgit pull
を実行する例えば Gitの引っ張りは現在のディレクトリに依存
#> cd ~
#> sudo -u dmalikov git --git-dir=/home/dmalikov/path/to/repo/.git pull
/usr/libexec/git-core/git-sh-setup: line 142: cd: /root/.: Permission denied
Cannot chdir to /root/., the toplevel of the working tree
そして/
からgit pull
を実行:
#> cd/
#> sudo -u dmalikov git --git-dir=/home/dmalikov/path/to/repo/.git pull
Already up-to-date.
git pull
INGのコマンドをカレントディレクトリに影響を与えたのはなぜですか?
どのように冗長なcd
を避けることができますか?
ここで、/ rootはレポ内のフォルダですか?それはあなたが許可の問題を持ってはいけないはずです。 /rootがgit構造体の外側にある場合、最初にそのフォルダにアクセスする理由は何ですか? – bluesman
なぜあなたはrootとして働こうとしていますか? – Ethan
eix-sync.confの内容であるため、私はrootで作業しようとしています。 –