mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Import git commands for "Creating a new feature branch"
@ -40,8 +40,9 @@ The head of the pytorch/pytorch master branch may have test failures ([see here
|
||||
Some quick git tips:
|
||||
```
|
||||
# Creating a new feature branch off of viable/strict
|
||||
git checkout viable/strict
|
||||
git checkout -b my_new_feature
|
||||
git fetch upstream viable/strict
|
||||
git checkout -b my_new_feature upstream/viable/strict
|
||||
git push -u origin my_new_feature
|
||||
|
||||
# Rebasing your work to appear on top of viable/strict, assuming upstream points to pytorch/pytorch.
|
||||
# (Some people develop with origin pointing to pytorch/pytorch)
|
||||
|
Reference in New Issue
Block a user