fatal: '/path/to/some/directory' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
[http] proxy = http://12.34.56.78:1234 [https] proxy = https://12.34.56.78:1234
Stage this hunk [y,n,q,a,d,K,J,g,/,e,?]? e error: patch fragment without header at line 51: @@ -129,5 +145,7 @@ Your edited hunk does not apply. Edit again (saying "no" discards!) [y/n]?
Possible cause | Solution |
---|---|
a Git bug (sources: 1, 2) | Don't split + edit hunks, edit them directly. |
My editor (Emacs) is configured to delete trailing whitespace before saving, which deletes context lines from the patch (these lines contain only a single SPACE character)(source) |
|
Cloning into 'myRepository'... fatal: unable to access 'https://git.domain.tld/path/to/myRepository/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
remote: error: refusing to update checked out branch: refs/heads/master remote: error: By default, updating the current branch in a non-bare repository remote: error: is denied, because it will make the index and work tree inconsistent remote: error: with what you pushed, and will require 'git reset --hard' to match remote: error: the work tree to HEAD. remote: error: remote: error: You can set 'receive.denyCurrentBranch' configuration variable to remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into remote: error: its current branch; however, this is not recommended unless you remote: error: arranged to update its work tree to match what you pushed in some remote: error: other way. remote: error: remote: error: To squelch this message and still keep the default behavior, set remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'. To /path/to/my/repo/.git ! [remote rejected] master -> master (branch is currently checked out) error: failed to push some refs to '/path/to/my/repo/.git'
As said by this error message : you just can NOT push to a non-bare Git repository (details).
Some solutions are still available :