-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create local branch and track remote branch? #100
Comments
maybe you should try this:
|
Can you give me a sample code? |
try this, it works fine for me. |
@lsyyff23 my understanding is your example only works if |
To help us keep things tidy and focus on the active tasks, we've introduced a stale bot to spot issues/PRs that haven't had any activity in a while. This particular issue hasn't had any updates or activity in the past 90 days, so it's been labeled as 'stale'. If it remains inactive for the next 30 days, it'll be automatically closed. We understand everyone's busy, but if this issue is still important to you, please feel free to add a comment or make an update to keep it active. Thanks for your understanding and cooperation! |
Just like git command:
git checkout --track origin/dev
My code:
Now I can create local branch, but it doesn't track with remote. And when I execute
worktree.Pull
, it report error:non-fast-forward update
.The text was updated successfully, but these errors were encountered: