How to add multiple projects into a Single repository in Bitbucket?

I am trying to add multiple projects into a single repository in Bitbucket, but after commiting when I pushed to the origin master it just added the empty folders. No subfolders and files have been added. I have followed below steps,

  1. From the main folder, git init
  2. git remote add origin gitrepository name
  3. git add --all
  4. git commit -m "initial commit"
  5. git push -u origin master

  • Is it possible to set two remote urls for a git repository?
  • Your configuration specifies to merge with the <branch name> from the remote, but no such ref was fetched.?
  • Why is bitbucket not automatically updating my pull request?
  • How to keep two git repos synchronized?
  • Bitbucket/Github: permission denied public key
  • Authentication for git-bitbucket
  • git: how to show commits since “the last time it was 5AM”
  • Using the Yocto Git Workflow with an existing Git repository
  • Github Branch,Tag: How to get a specific release of a code?
  • How to use git to merge two non-git projects
  • How to rebase backwards, preferably without using diff/apply?
  • textmate does not save commit message
  • One Solution collect form web for “How to add multiple projects into a Single repository in Bitbucket?”

    That would happen if those project folders are themselves nested git repos.

    In that case, the content of those nested repos would be ignored: see “How to commit a git repo into a git repo (not submodule)”.

    You could try and “merge nested git repo into parent repo, retaining history”.

    Or you could declare those nested repo as submodule.
    (as in “Creating Git Submodules out of existing repository and reflecting parent changes to the child repository”)

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