From add8d8d09afe5534a081153d0808703d382ce2ab Mon Sep 17 00:00:00 2001 From: z4root Date: Wed, 28 Oct 2026 19:02:11 +0000 Subject: [PATCH] docs(git-readme): add the explantion of set-upstream --- Git/docs/Set_Upstream.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Git/docs/Set_Upstream.md diff --git a/Git/docs/Set_Upstream.md b/Git/docs/Set_Upstream.md new file mode 100644 index 0000000..41985ea --- /dev/null +++ b/Git/docs/Set_Upstream.md @@ -0,0 +1,12 @@ +# Set-Upstream + +**Creates a permanent link** between your local branch and the branch on the server (GitHub). + +When you run `git push -u origin main`, you are saying: _"Push my code, **and also remember that from now on, this local branch is linked to that remote branch**."_ + +Now, for the rest of the project's life, you can simply type: + +- `git push` +- `git pull + +The `-u` is for **convenience**. It saves you from having to type `origin main` every single time you want to share your code