Git branch another branch from current branch

Your current branch is master and if u create another branch like that git branch develop,then in branch develop you will have similar code about master。how can i get an empty branch.

  • Storing Drupal SQL in Git
  • Can't clone/push from GIT using IntelliJ Idea with ssh
  • GitHub: Is it possible to collaborate with someone on a private gist?
  • How can I display a 'last-deployed' timestamp from within my Heroku Rails app?
  • Cloning Git Repo using TFS Personal Access Token
  • Composer create-project from bitbucket
  • 404 error when building Git project in TFS2013
  • How can I duplicate a git-svn cloned repository, so that git svn dcommit still works
  • Stash / Commit before Pull Not to Lose Local Files
  • completely removing a file from git repo (from a certain point in time)
  • How to use Git for pulling remote branch
  • How do I merge with --no-ff in SmartGit/hg?
  • One Solution collect form web for “Git branch another branch from current branch”

    You can create an orphan branch, which start without parent, and will be effectively “empty”.

    git checkout --orphan develop

    This is since git 1.7.2: see “In git, is there a simple way of introducing an unrelated branch to a repository?”.

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