Skip to content

Instantly share code, notes, and snippets.

@kaihendry
Created November 23, 2016 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaihendry/640bb90e72a1153ff38e96d3f98b670f to your computer and use it in GitHub Desktop.
Save kaihendry/640bb90e72a1153ff38e96d3f98b670f to your computer and use it in GitHub Desktop.
mbp:~ kaihendry$ git init
Initialized empty Git repository in /Users/kaihendry/.git/
mbp:~ kaihendry$ git remote set-url master git@github.com:kaihendry/dotfiles.git
fatal: No such remote 'master'
mbp:~ kaihendry$ git pull master master
fatal: 'master' 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.
mbp:~ kaihendry$
mbp:~ kaihendry$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
mbp:~ kaihendry$ git remote set-url master git@github.com:kaihendry/dotfiles.git
fatal: No such remote 'master'
mbp:~ kaihendry$ git remote set-url --add master git@github.com:kaihendry/dotfiles.git
fatal: No such remote 'master'
mbp:~ kaihendry$ git remote add origin git@github.com:kaihendry/dotfiles.git
mbp:~ kaihendry$ git remote set-url master git@github.com:kaihendry/dotfiles.git
fatal: No such remote 'master'
mbp:~ kaihendry$ git remote -v
origin git@github.com:kaihendry/dotfiles.git (fetch)
origin git@github.com:kaihendry/dotfiles.git (push)
mbp:~ kaihendry$ git pull master master
fatal: 'master' 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.
mbp:~ kaihendry$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment