O
O
Optimus2017-08-10 07:16:02
git
Optimus, 2017-08-10 07:16:02

Location of git and its config on the webserver?

I set up git on the server for auto-deploy, the structure is like this

domain.ru
 - ssh
    - id_rsa
    - id_rsa.pub
    - config
    - known_hosts
 - git
 - app
 - public_html

The server looks in public_html i.e. there is only index.php and all the working files of the project above www in the app there is a git folder and ssh with settings and keys.
Question 1: the path to the key is specified in the config: IdentityFile ssh/id_rsa is wrong, should I either raise the config level, or write IdentityFile id_rsa?
Question 2: if you go to the git folder and write, git config --listthen the console is silent. Git does not see this config at all, how can I specify the path to it?
Question 3: if you create a turnip in the git folder, for example git init, a local config will be created there that overrides the global one, so can all the settings be entered into it already?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2017-08-10
Pyan @marrk2

I think you need to start with the fact that the folder should be called .ssh(dot at the beginning of the name).
Well, .gitsimilarly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question