Git: Difference between revisions

Line 39: Line 39:
===Prune remote branches===
===Prune remote branches===
<tt>git remote prune origin</tt>
<tt>git remote prune origin</tt>
This can be made automatic with <tt>git config remote.origin.prune true</tt> since git 1.8.5.
This can be made automatic with <tt>git config remote.origin.prune true</tt> since git 1.8.5.
===Hard sync to upstream===
===Hard sync to upstream===
Warning: this will throw away even committed local changes! Assuming remote <tt>upstream</tt> and branch <tt>master</tt>:
Warning: this will throw away even committed local changes! Assuming remote <tt>upstream</tt> and branch <tt>master</tt>: