git initialize remote repo

I followed this post to setup a remote git repo.

Instead of starting from scratch,

  • Does git pull always create a merge commit?
  • How to revert two commits back and commit only good stuff?
  • Version control system for game development with UDK?
  • gem.add_dependency Jeweler how do you format a git source?
  • error: The requested URL returned error: 403 Forbidden while accessing
  • github: No supported authentication methods available
    1. I did some development in my pc1 (the repo was created with git init)
    2. Now, I wanted to move the repo to a server (same subnet)

      mkdir my_project.git
      cd my_project.git
      git init --bare

    3. Then, locally

      cd my_project
      git remote add origin
      git push -u origin master

    Now, in remote (server) repo, I see these folders

    branches config description HEAD hooks info objects refs

    I was expecting/want to see the same content as my local (pc1) git repo

    bin doc src

  • Importing a Git Project into Aptana with SSH Username and Password
  • Unable to get Jenkins and Git to play nice
  • How to pull a branch deletion in git?
  • Running Git through Cygwin from Windows
  • How do I know if a branch has already been merged in SVN/Mercurial/Git?
  • is it possible to generate a graph in Visual Studio Online to show coders' contributions?
  • 2 Solutions collect form web for “git initialize remote repo”

    You initialized a bare repository on the remote side. What this means is that it stores the history, but doesn’t have a working directory (translation — no actual checkout of the project). The structure you’re seeing is normal.

    git init --bare means you create a bare repository, rather than working repository. A bare repository usually stores at server and it looks just like your .git directory of your working r repository.

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