I've made some changes and to a branch, commit them and pushed it but I still don't see the branch (nor the commits) on github (or can't pull changes to another machine). What I've tried already:
$ git branch *MyBranch
main
$ git push Everything up-to-date
$ git branch -vv *MyBranch 76e9e79[origin/MyBranch] last commit message
$ git status On branch MyBranch
Your branch is up to date with 'origin/MyBranch'.
$ git remote show origin MyBranch tracked
Local branches configured for 'git pull':
MyBranch merges with remote MyBranch
main merges with remote main
Local refs configured for 'git push':
MyBranch pushes to MyBranch (up to date)
main pushes to main (up to date)
What's going on, why is MyBranch
not visible on github nor available for pulling on another system?
In response to @ElpieKay's comment:
$ git remote -vv
origin git@github.com:org/repo.git (fetch)
origin git@github.com:org/repo.git (push)
git push origin MyBranch:MyBranch
Everything up-to-date
I'll start over from scratch, get a fresh clone and copy across the files I've changed.... luckily the changes are manageable in size.