GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GIT-SYNC(1) GIT-SYNC(1)

git-sync - Sync local branch with remote branch

git sync [--soft] [ <remote> <branch> ]

Sync local branch with <remote>/<branch>.

When <remote> and <branch> are not specified on the command line, upstream of local branch will be used by default.

All changes and untracked files and directories will be removed unless you add -s(--soft).

--soft or -s

Add this flag if you want to preserve untracked files.

Sync local branch with its upstream
$ git sync
    

Sync local branch with origin/master

$ git sync origin master
    

Sync without cleaning untracked files:

$ git sync -s origin master
    

Written by Takuma Yamaguchi <kumon0587@gmail.com>

<https://github.com/tj/git-extras/issues>

<https://github.com/tj/git-extras>
January 2019

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.