Git: Adding the full tree of files to the master

I have an existing folder that has many files and folders with no source control.

I create a git repository in it’s root folder:

  • Why didn't git checkout (of a past commit) change my files?
  • Using Git Flow, the successful branching model
  • Specifying branch arguments to git fetch, merge, and push
  • Why does git insist my changes are local when the origin changes, causing me to not be able to pull changes?
  • Keeping a public and private version of my app using Git
  • TFS Branch/Merge meets History View
  •  git init

    However, there is no “master”

    git branch

    returns nothing.

    How do I create the master branch and have it set as the initial and only branch in a folder with existing files and folders?

  • To put the prefix ?<revision-number> to codes by Git/Svn
  • OSX 10.10 yosemite beta on git pull: git-sh-setup: No such file or directory
  • how do you use virtual-dom gist in browser?
  • Make a git-alias or similar that includes “branchfolder/” - part of the branch name
  • unable to create file … Permission denied
  • How to sign out in Git Bash console in Windows?
  • One Solution collect form web for “Git: Adding the full tree of files to the master”

    The master branch is the default branch that is created automatically after you commit the first files:

    git add .
    git commit -m "initial commit"
    Git Baby is a git and github fan, let's start git clone.