Cannot perform git flow with root privileges

Asked 2 years ago, Updated 2 years ago, 49 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.