some Rhand fingers
This commit is contained in:
@@ -190,3 +190,48 @@ This would replace your local network origin with the Tailscale one, so `git pul
|
||||
|
||||
---
|
||||
|
||||
_**User**_
|
||||
|
||||
how to set Tailscale/main as upstream?
|
||||
|
||||
---
|
||||
|
||||
_**Assistant**_
|
||||
|
||||
To set `Tailscale/main` as your upstream, use this command:
|
||||
|
||||
```bash
|
||||
git branch --set-upstream-to=Tailscale/main
|
||||
```
|
||||
|
||||
**Or if you want to be more explicit about which branch:**
|
||||
```bash
|
||||
git branch --set-upstream-to=Tailscale/main main
|
||||
```
|
||||
|
||||
**After setting upstream, you can:**
|
||||
- Just use `git pull` (will pull from Tailscale/main)
|
||||
- Just use `git push` (will push to Tailscale/main)
|
||||
|
||||
**To verify it worked:**
|
||||
```bash
|
||||
git branch -vv
|
||||
```
|
||||
|
||||
You should see something like:
|
||||
```
|
||||
* main abc1234 [Tailscale/main] Your commit message
|
||||
```
|
||||
|
||||
**Alternative one-liner:**
|
||||
If you haven't pushed your branch yet, you can also do:
|
||||
```bash
|
||||
git push -u Tailscale main
|
||||
```
|
||||
|
||||
This pushes your branch and sets the upstream in one command.
|
||||
|
||||
**Note:** Make sure you're on the `main` branch first. If you're on a different branch, either switch to main with `git checkout main` or specify your current branch name in the command.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user