• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Notes to Self

  • Aviation Weather from NOAA Plugin
    • KZZV
    • Bad Shortcode
    • Simple Metar
  • Meetings
  • Meetings Map

Mark Chouinard / August 26, 2014

Specify Branch for Git Pull

[branch "master"]
    remote = origin
    merge = refs/heads/master

or

$ git config branch.master.remote origin
$ git config branch.master.merge refs/heads/master

This tells Git 2 things:

  1. When you’re on the master branch, the default remote is origin.
  2. When using git pull on the master branch, with no remote and branch specified, use the default remote (origin) and merge in the changes from the master branch.

 

From SO

Filed Under: Development Tagged With: git

Primary Sidebar

Footer

Copyright © 2021 · machouinard · Log in