   initiateCreateBranch: ->
     @trigger 'need_input',
       query: 'Branch name'
-      callback: (name) ->
-        git.createBranch name, ->
-          git.git "checkout #{name}"
+      callback: (name) -> git.cmd "checkout -b #{name}"
 
   # Public: Initiate a user defined git command.
   initiateGitCommand: ->

  #
  # Returns the active selection as {Object}.
  selection: ->
    @active_list.selection()

  leaf: ->
    @active_list.leaf()

  # Internal: The commit message file path.
  #

    atom.project.getRepo().getReferences().heads.length

  fetch: ->
    git.cmd 'fetch'

  checkoutBranch: ->
    @branchList.checkoutBranch

  stash: ->
    git.cmd 'stash'

  stashPop: ->
    git.cmd 'stash pop'

  # Internal: Initiate a new commit.
  initiateCommit: ->
    if atom.config.get('atomatigit.PRE_COMMIT_HOOK') isnt ''
      atom.workspaceView.trigger(atom.config.get('atomatigit.PRE_COMMIT_HOOK'))

    fs.writeFileSync(@commitMessagePath(), '')

