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,
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 OneMinuteCode. All rights reserved.