💾 Archived View for warpengineer.space › entries › my-notes-on-git.gmi captured on 2024-08-31 at 11:35:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

-=-=-=-=-=-=-

Stuff I keep forgetting

Work on a remote branch

1. `git fetch <origin> <remote_branch>`

2. `git checkout -b <local_branch_name> <origin>/<remote_branch>`

1. can also be: `git checkout <remote_branch>`

Track a remote branch

1. `git checkout -b <local_branch> # if no local created yet`

2. `git branch -u <origin>/<remote_branch>`

Will update this as needed.