git set up to track remote branch
Liang Wang
Posted on February 5, 2024
I create a new branch locally, commit the code, now would like to push it to origin and track remote branch with the same name.
Example
create and check out new local branch called dev
git co -b dev
set up to track remote branch 'dev' from 'origin'
git push -u origin dev
git co
is my alias for commit.
💖 💪 🙅 🚩
Liang Wang
Posted on February 5, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
githubcopilot AI Innovations at Microsoft Ignite 2024 What You Need to Know (Part 2)
November 29, 2024