GIT: fatal: 'master' does not appear to be a git repository

GhostRider

I was pushing my master branch to my GIT repo and go this error

  fatal: 'master' does not appear to be a git repository

On the advice of a stack question I typed

  git remote -v

and got

  heroku    https://git.heroku.com/peaceful-cove-8372.git (fetch)
  heroku    https://git.heroku.com/peaceful-cove-8372.git (push)
  origin    https://github.com/SimonWalsh1000/breathe.git (fetch)
  origin    https://github.com/SimonWalsh1000/breathe.git (push)

I then typed

   simonalice$ git push -u origin master

And it worked but said

   Branch master set up to track remote branch master from origin.

I am very new to GIT and I am not fully sure what has happened. I would be very grateful if someone could explain this sequence to me. I haven't been able to get clear answers. Is my master branch now, the master branch in GIT or is it some clone?

Many thanks

VonC

And it worked but said

Branch master set up to track remote branch master from origin.

Do a git config --local -l

You will see that the local branch master is set to track the upstream branch origin/master

See "Difference between git checkout --track origin/branch and git checkout -b branch origin/branch".

It would be like you did:

git config branch.master.remote origin
git config branch.master.merge refs/heads/branch

The first push needs that upstream information: see "Why do I need to explicitly push a new branch?".

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository."

From Dev

fatal: 'jigar/test.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly

From Dev

can't deploy git repository to dokku instance (fatal: {reponame} does not appear to be a git repository)

From Java

'heroku' does not appear to be a git repository

From Dev

origin does not appear to be a git repository

From Dev

Github : Does not appear to be a git repository

From Dev

git clone fatal: 'origin' does not appear to be a git repository for VMware vmhgfs share

From Dev

Git - URL does not appear to be a git repository

From Dev

Git Error : 'upstream' does not appear to be a git repository

From Dev

git clone --bare: fatal: repository does not exist

From Dev

Bitbucket Origin does not appear to be a git repository

From Dev

Git fatal not valid : is this a git repository?

From Dev

TracError: foo.git does not appear to be a Git repository

From Dev

'github.com/x/x' does not appear to be a git repository

From Dev

Fatal: not a git repository - after BSoD

From Dev

git checkout master does not switch branch - repository broken?

From Java

Why does "git status" show I'm on the master branch and "git branch" does not in a newly created repository?

From Dev

fatal: Not a git repository (or any of the parent directories): .git (And yet the repository exists)

From Dev

git fatal not a git repository (or any of the parent directories) .git

From Dev

Why does "git pull" get all branches from repository but "git pull origin master" not do so?

From Dev

Git: fatal: A branch named 'master' already exists

From Java

Git push master fatal: You are not currently on a branch

From Java

git: fatal: Could not read from remote repository

From Dev

SourceTree - git: fatal: remote error: Repository not found

From Dev

Heroku - Fatal error when pushing to a git repository

From Dev

Redmine error log fatal:not a git repository

From Dev

Heroku - Fatal error when pushing to a git repository

From Dev

New Git repository has no "master" branch

From Dev

git push heroku master error: Repository not found

Related Related

  1. 1

    Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository."

  2. 2

    fatal: 'jigar/test.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly

  3. 3

    can't deploy git repository to dokku instance (fatal: {reponame} does not appear to be a git repository)

  4. 4

    'heroku' does not appear to be a git repository

  5. 5

    origin does not appear to be a git repository

  6. 6

    Github : Does not appear to be a git repository

  7. 7

    git clone fatal: 'origin' does not appear to be a git repository for VMware vmhgfs share

  8. 8

    Git - URL does not appear to be a git repository

  9. 9

    Git Error : 'upstream' does not appear to be a git repository

  10. 10

    git clone --bare: fatal: repository does not exist

  11. 11

    Bitbucket Origin does not appear to be a git repository

  12. 12

    Git fatal not valid : is this a git repository?

  13. 13

    TracError: foo.git does not appear to be a Git repository

  14. 14

    'github.com/x/x' does not appear to be a git repository

  15. 15

    Fatal: not a git repository - after BSoD

  16. 16

    git checkout master does not switch branch - repository broken?

  17. 17

    Why does "git status" show I'm on the master branch and "git branch" does not in a newly created repository?

  18. 18

    fatal: Not a git repository (or any of the parent directories): .git (And yet the repository exists)

  19. 19

    git fatal not a git repository (or any of the parent directories) .git

  20. 20

    Why does "git pull" get all branches from repository but "git pull origin master" not do so?

  21. 21

    Git: fatal: A branch named 'master' already exists

  22. 22

    Git push master fatal: You are not currently on a branch

  23. 23

    git: fatal: Could not read from remote repository

  24. 24

    SourceTree - git: fatal: remote error: Repository not found

  25. 25

    Heroku - Fatal error when pushing to a git repository

  26. 26

    Redmine error log fatal:not a git repository

  27. 27

    Heroku - Fatal error when pushing to a git repository

  28. 28

    New Git repository has no "master" branch

  29. 29

    git push heroku master error: Repository not found

HotTag

Archive