Solve the git error: command not found: git-receive-pack

git config remote.origin.receivepack /server/explicit/path/to/git-receive-pack
If you want to ask me a question or leave me a message add @bougui505 in your comment.