I read this and I have checked my credentials,still I can not git push.
git push --set-upstream origin master
git: 'credential-netrc' is not a git command. See 'git --help'.
What I have done so far:
gpg --gen-key
gpg -e -r myemail@gmail.com ~/.netrc
~/.local/bin/git-credential-netrc
git config --global credential.helper "netrc -f ~/.netrc.gpg -v"
git config shows
file:/home/milenko/.gitconfig user.email=milenko.markovic@gmail.com
file:/home/milenko/.gitconfig credential.helper=netrc -f ~/.netrc.gpg -v
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=true
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config remote.origin.url=https://github.com/MilenkoM/blog_mongo
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
It seems that my creation helper is not recognized. Why?
You need to make sure that:
~/.local/bin/
is in your $PATHgit-credential-netrc
is executable (chmod 755 ~/.local/bin/git-credential-netrc
)Then you can test if git credential-netrc
(note the space) will respond anything (even if it errors)