Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Git/docs/Set_Upstream.md
Original file line number Diff line number Diff line change
@@ -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
Loading