K
K
kpa6uu2016-07-02 18:37:31
git
kpa6uu, 2016-07-02 18:37:31

How to specify login and password when git fetch -all?

Hello. I set up a connection with a gitlab (git server) in redmine.
It remains only to configure the automatic upload of changes using the crontab.
The guide uses this command: */5 * * * * cd /var/lib/redmine/repos/my_repo && git fetch --all
However, the problem is that it asks for a username and password from my GitLab server.
Is there an option to specify authorization data? Like -l root -p root?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kpa6uu, 2016-07-02
@kpa6uu

He asked himself - he answered. Giza
git config credential.helper store
or globally
git config --global credential.helper store
to remove - git config --unset credential.helper
en.stackoverflow.com/questions/420040/%D0%9E%D0%B1...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question