From e110428da7aa21be2a74f4b4b1cef5a66b659adf Mon Sep 17 00:00:00 2001 From: Robson Cruz Date: Sat, 6 Nov 2021 21:31:12 -0300 Subject: [PATCH] git-sync: add page (#7357) --- pages/common/git-sync.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/common/git-sync.md diff --git a/pages/common/git-sync.md b/pages/common/git-sync.md new file mode 100644 index 0000000000..fad003ed37 --- /dev/null +++ b/pages/common/git-sync.md @@ -0,0 +1,17 @@ +# git sync + +> Sync local branches with remote branches. +> Part of `git-extras`. +> More information: . + +- Sync the current local branch with its remote branch: + +`git sync` + +- Sync the current local branch with the remote main branch: + +`git sync origin main` + +- Sync without cleaning untracked files: + +`git sync -s {{remote_name}} {{branch_name}}`