pstadler / keybase-gpg-github

Step-by-step guide on how to create a GPG key on keybase.io, adding it to a local GPG setup and using it with Git and GitHub.
2.64k stars 182 forks source link

gifatal: Not a git repository (or any of the parent directories): .git #9

Closed Ghostavio closed 8 years ago

Ghostavio commented 8 years ago

Every time I open a new tab on the terminal I'm getting this.

pstadler commented 8 years ago

I think you posted this to the wrong repository.

Ghostavio commented 8 years ago

not really, I started getting this after following all the instructions here.

pstadler commented 8 years ago

Post your rc and gitconfig file contents here please.

Ghostavio commented 8 years ago

here are my rc files: https://github.com/Ghostavio/dotfiles/tree/master/zsh and here is my gitconfig file:

# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
    name = Gustavo Siqueira
    email = gustavo.anacleto@gmail.com
    signingkey = [my eight digits key]

[alias]
    lg = log --graph --pretty=format:\"%C(blue)%h %Creset- %C(green)(%cr) %Creset%s - %C(cyan)%an %C(magenta)%d\" --date=short
[push]
    default = current
[commit]
    gpgsign = true
Ghostavio commented 8 years ago

I've only added this to my .zprofile file:

# Paste these lines:
if test -f ~/.gnupg/.gpg-agent-info -a -n "$(pgrep gpg-agent)"; then
  source ~/.gnupg/.gpg-agent-info
  export GPG_AGENT_INFO
else
  eval $(gpg-agent --daemon --write-env-file ~/.gnupg/.gpg-agent-info)
fi
pstadler commented 8 years ago

This is happening when you call a git command in a folder which is not under source control. I really can't imagine that this is related to this document.

Please ask on Stack Overflow.