Git – Bare Repository is not up to date

ok I try again to describe my problem.
At first let me say I am a beginner in Git. I have read a lot of stuff but there some points that are not clear for me.

I work local on a workingcopy. My head on local branchx have the same id as remote branchx on gitlab. But on the gitlabserver I can see two branches 1. bare/branchx 2. branchx.
And when I compare this two branches the bare/branchx is behind the branchx.

  • Can u recommend Git principle to a new programmer?
  • Git change code from a specific pushed commit on specific branch
  • How to swap configuration files for Production and Development?
  • Find all files except those which is under version control systems (git or SVN)
  • How can I run the makefile on every git branch
  • git alias including checkout and pull + rebase with params
  • I searched for a while to find the command to update bare/branchx to branchx but didn’t find.
    I have the suspicion that something is going wrong.

    Another questions is, why do I see this two branches instead of one – the bare/branchx.
    As I’ve read, on remote server have to be only an bare repository. But when I pull my Data to the remote, there isn’t a non bare repo? Where are my data else, when the Bare repo didn’t have a workingtree?

    So many questions, so many answers and ways to do things on git. I am confused

    @kan when I type

     git branch -a
    

    i get

    master
    * x2
    remotes/origin/bare/master
    remotes/origin/bare/x2
    remotes/origin/bare/x3
    remotes/origin/bare/x4
    remotes/origin/master
    remotes/origin/x2
    remotes/origin/x3
    remotes/origin/x4
    

    so i have a bare master and master.

  • Determining why github says “Closed with unmerged commits”
  • GitHub Pages: the structure of `gh-pages` branch
  • How to have two remote origins for Git?
  • Proper workflow using git and github
  • publish to multiple remotes using Github for Windows
  • What is this Git warning message when pushing changes to a remote repository?
  • One Solution collect form web for “Git – Bare Repository is not up to date”

    But when I pull my Data to the remote, there isn’t a non bare repo? Where are my data else, when the Bare repo didn’t have a workingtree?

    You don’t pull to the remote, you are pushing to the remote.
    And you are always pushing to a bare repo (to avoid any difference between the index in the .git directory, and the working tree itself — all the checked out files: no working tree, no problem)

    You should only see remotes/origin/master: this is the branch that should be at the same level as master once you have push master to origin.

    remotes/origin/bare/master shouldn’t exist, and “bare” here can be a branch namespace

    Git Baby is a git and github fan, let's start git clone.