Skip to content

GitPull

Damian edited this page Feb 24, 2020 · 3 revisions

Performs git pull from origin by default. You may also supply another remote if different.

If your remote has unrelated histories you may use the -u switch to resolve this.

Usage

GitPull             ; Pulls current branch defaulting remote to "origin"
GitPull "NotOrigin" ; Pulls current branch from specified remote
GitPull -u          ; Pull merging unrelated histories

TODO

  • Pulls branch and sets tracking so you can simply execute, git push next time GitPull "NotOrigin" -track
  • Story #18 - After pulling check for "fatal: refusing to merge unrelated histories" and suggest '-u' switch.
Clone this wiki locally