What does GitHub for Windows' "sync" do?

Jay Bazuzi picture Jay Bazuzi · Aug 24, 2012 · Viewed 46k times · Source

With GitHub for Windows, you can "publish" a branch, and then "sync" that branch to GitHub.

enter image description here

Is the sync basically a git pull and git push? Or is there more to it? If I wanted to do the exact same steps as "sync" from the command line, what should I do?

(It's not Open Source, or I'd just read that.)

Answer

Matt Rix picture Matt Rix · Dec 21, 2012

Sync does git pull --rebase and then if there are local changes, it does git push.

From here: http://haacked.com/archive/2012/05/21/introducing-github-for-windows.aspx#87318