linux - What does git -H do? -
i working command: sudo -u git -h bundle exec rake gitlab:backup:create rails_env=production
, root user should able use command without sudo linux says me after used command without sudo -h unknown option.
it's not git -h
, it's option sudo
. read as:
sudo // we're running -u git // run command specified later user "git" -h bundle // set home environment variable of user "bundle" exec rake gitlab:backup:create // command execute
if sudo
complaining doesn't know -h
means, may mean have old version of sudo
doesn't support it, or flavour of sudo
uses different command line option same behaviour. i'd suggest checking updates, , using man sudo
check exact version you're running locally , options accepts.
Comments
Post a Comment