From ad9d45050353482733609353f1e5fa85a792ddc2 Mon Sep 17 00:00:00 2001 From: Carmen Lee <10846449+carlee0@users.noreply.github.com> Date: Fri, 1 Jul 2022 11:13:13 +0200 Subject: [PATCH] Fix the issue of no upstream branch Issue in rogerdudler/git-guide/#49 --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5a2f2db1..8a022709 100644 --- a/index.html +++ b/index.html @@ -117,7 +117,7 @@
Your changes are now in the HEAD of your local working copy. To send those changes to your remote repository, execute
- git push origin master
+ git push -u origin master
Change master to whatever branch you want to push your changes to.
If you have not cloned an existing repository and want to connect your repository to a remote server, you need to add it with
@@ -141,7 +141,7 @@
git branch -d feature_x
git push origin <branch>
+ git push -u origin <branch>