I have a propject that have a master branch.
T create a new branch with this command.
$ git branch develop
$ git checkout develop
when I look the gitlab(local), develop branch is not added to my project/branch.
after the switch to develop branch and I made many changed to the develop branch.
I need to commit and push the develop branch to gitlab(local).
I know that if I create new branch from gitlab(local) then I can clone and commit and ...
but I need to to push the created branch from repo to gitlab(local) with command line.
How to fix this?
Thanks.

git push origin develop... perhaps even use--set-upstreamso that the local branch starts tracking the remote one,createbranch.create branch, my problem with displayed it on git(local). I mentioned in prev comment.