git - reassign an existing remote repo to my local repo -
so don't here git/bitbucket, i'm not sure exactly. bit out of depth, perhaps.
i have project has laid dormant year, , has somehow lost connection bitbucket. how reassign existing remote origin local repo?
i did local git commit (which worked fine), when did git pull in advance of push, got this:
there no tracking information current branch. please specify branch want merge with. see git-pull(1) details git pull <remote> <branch> if wish set tracking information branch can with: git branch --set-upstream-to=origin/<branch> master i tried:
git branch --set-upstream-to=origin/git@bitbucket.org:<username>/<repo>.git master ...which didn't work. got this:
error: requested upstream branch 'origin/git@bitbucket.org:<username>/<repo>.git' not exist hint: hint: if planning on basing work on upstream hint: branch exists @ remote, may need hint: run "git fetch" retrieve it. hint: hint: if planning push out new local branch hint: track remote counterpart, may want use hint: "git push -u" set upstream config push. i know have bitbucket repo project (visiting bitbucket in browser confirms this), , project status 1 commit behind.
thanks in advance.
instead of
git branch --set-upstream-to=origin/git@bitbucket.org:<username>/<repo>.git master try using
git branch --set-upstream-to=origin/master master and afterwards, run git fetch.
Comments
Post a Comment