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


i pushing master branch git repo , go error

  fatal: 'master' not appear git repository 

on advice of stack question 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 typed

   simonalice$ git push -u origin master 

and worked said

   branch master set track remote branch master origin. 

i new git , not sure has happened. grateful if explain sequence me. haven't been able clear answers. master branch now, master branch in git or clone?

many thanks

and worked said

branch master set track remote branch master origin.

do git config --local -l

you see local branch master set track upstream branch origin/master

see "difference between git checkout --track origin/branch , git checkout -b branch origin/branch".

it did:

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

the first push needs upstream information: see "why need explicitly push new branch?".


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -