Git credential filling rejects my Windows planned input

I want to run daily tasks on a Windows server: git-pull + heavy tests.

Since I want it to run on a schedule and run from a script, I need the Git credentials to be entered automatically. I want to use Git credentials with syntax key = value

Since I am using Git credentials for the first time, I could be wrong.

I tried to work both in Git Bash (extensions Git → Ctrl+ G), and in Cygwin.

There I entered the following lines:

$ git credential fill
protocol=ssh
host=devserver
username=<my user name>
password=<my password>
path=/srv/gitosis/repositories/Matlab.git
<empty line>

Git then responds:

warning: invalid credential line:
fatal: unable to read credential from stdin

. , .

: ?

: ?

git remote -vv

:

origin  gitosis@10.10.10.102:/srv/gitosis/repositories/Matlab.git (fetch)
origin  gitosis@10.10.10.102:/srv/gitosis/repositories/Matlab.git (push)

?

: ?

Git remote, ping devserver

64 bytes from 10.10.10.102: icmp_seq=0 ttl=64 time=74 ms

, devserver?

+8
2

-, : , Git, , , , . Git (1.9.5.mysysgit; ).

- , git-credential . , .

API , git credential-foo git config credential.helper foo. , , get fill ( ).

, wincred, mysite.com. , Windows https://myusername@mysite.com, - . , :

>git credential-wincred get
protocol=https
host=mysite.com

:

username=myusername
password=mypassword

, . - IP-, .

, git credential-foo <get|store|erase> git credential <fill|approve|reject>, , -, , , , .


:

?

, , Git, , git credential approve git credential fill, approve , fill ( ; Git ).

?

, , srv/gitosis/repositories/Matlab.git, srv/gitosis/repositories/Matlab.git .

?

, , , host=10.10.10.102 .

+5

- Git Bash . stdin.

0

Source: https://habr.com/ru/post/1628283/


All Articles