I
I
ilovemaryjane2018-11-08 22:43:38
linux
ilovemaryjane, 2018-11-08 22:43:38

How to work with git in directories requiring sudo?

For example, I need to clone a repository to /var/node(via ssh, preferably via a bash script). Just adding sudo doesn't work. What to do? And so that you can work later (git pull, etc.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Softer, 2018-11-08
@ilovemaryjane

chown / chmod

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question