Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
503 views
in Technique[技术] by (71.8m points)

git - What does GitHub for Windows' "sync" do?

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.)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...