Cannot perform git flow with root privileges

Asked 1 years ago, Updated 1 years ago, 44 views

I am currently developing on ec2 (amazon linux) of aws.
After installing git flow, the initial user ec2-user can hit the git flow command, but if you hit the command with root permission, it becomes Command not found.
Why is that?

For ec2-user or root, whichgit is /usr/bin/git.

git git-flow

2022-09-30 14:00

1 Answers

The git command looks for the git-SOMECOMAND executable in the path if you run git SOMECOMAND and it is not your own command.Therefore, in this case, I believe that git-flow is installed in a location that is not in the root path.


2022-09-30 14:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.