I need to configure git with repository connection to gitlab. When writing commands, the error -bash: git: command not found occurs. What could be the problem and how to fix it. enter image description here

Screenshot with instructions from GitLab:

  • one
    Welcome to Stack Overflow in Russian ! It is better to provide textual information in the form of text, not images: it is more convenient to read, and search engines will index it. - aleksandr barakin
  • one
    You first need to install Git, but you have not provided any information about the platform you are using, so this question cannot be answered unambiguously. - check1st

1 answer 1

Bash clearly hints that git is not installed. There are two possible solutions - right and wrong. Or install git on the server ( apt-get install git most likely if ubuntu is there, for other options there are some commands). Or the right one - you need to install a deployment system on the server, and not to pull the repository.

  • Now it gives an error: -bash: apt: command not found - linki_plus
  • @linki_plus apt-get install git - PashaPash
  • @linki_plus if apt-get install does not work, write in the question what is your OS. And better go the right way and configure the deployment system. - Nick Volynkin