after importing from github pushes from ui goto ‘glitch’ branch but pushes from console goto directly into ‘master’ branch
ps and i never see a ‘glitch’ branch in your console from git branch -a
https://glitch.com/edit/console.html?osde8info-react-lifecycle-methods-diagram
you are pushing with this in console:
git push origin master
as glitch does:
git push origin glitch
thanks i think ive got it now
git fetch does add the glitch branch
but im just doing a “git push” in this project (as i do in non cloned projects) as “git push origin glitch” gives me an error (see below)
so i guess the feature request to make the behaviour the same in cloned and non cloned projects is an option to set remote after a UI git export
but it is just a little confusing that local master == remote glitch and remembering not to push from console
app@osde8info-react-lifecycle-methods-diagram:~ 09:54
$ git push origin glitch
error: src refspec glitch does not match any.
error: failed to push some refs to 'https://github.com/osde8info/react-lifecycle-methods-diagram.git'
app@osde8info-react-lifecycle-methods-diagram:~ 09:54
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
app@osde8info-react-lifecycle-methods-diagram:~ 09:55
$ git push
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 349 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/osde8info/react-lifecycle-methods-diagram.git
d267e15..5a2a92c master -> master
app@osde8info-react-lifecycle-methods-diagram:~ 09:55
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
app@osde8info-react-lifecycle-methods-diagram:~ 09:55
forgot to mention, if it is unable to find a glitch branch, it will create one automatically. if this doesn’t help, please provide even more information.
1 Like
more :shock: well here goes 
i would like ui push and console pushes to be the same (ie to always push to git remote branch (by default))
and i would like console push behaviour for noncloned and cloned glitch projects to be the same (ie to always push to git remote branch (by default))
by noncloned i mean a project created in glitch but has been previously pushed into git so i guess the initial push should push into glitch branch too 
… that just caused a brain fart @osde8info
I’ma have to read that through 10-20 times