From 8f9e3caf2954ba0a3da3e16047dc0eb482f0b048 Mon Sep 17 00:00:00 2001 From: Nicolas Kosinski Date: Mon, 21 Jun 2021 21:06:21 +0200 Subject: [PATCH] hub: add sync example (#6108) --- pages/common/hub.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/common/hub.md b/pages/common/hub.md index bc4f012cc5..611ae9c8d8 100644 --- a/pages/common/hub.md +++ b/pages/common/hub.md @@ -4,11 +4,7 @@ > If set up as instructed by `hub alias`, one can use `git` to run `hub` commands. > More information: . -- Clone a repository you own, using just the repository name rather than the full URL: - -`hub clone {{repo_name}}` - -- Clone another user's repository, using their GitHub username and the repository name: +- Clone a repository using its slug (owners can omit the username): `hub clone {{username}}/{{repo_name}}` @@ -31,3 +27,7 @@ - Upload the current (local-only) repository to your GitHub account: `hub create` + +- Fetch Git objects from upstream and update local branches: + +`hub sync`