Import git commands for "Creating a new feature branch"

Tom Ritchford
2024-05-08 19:43:11 +02:00
parent a41f72f786
commit 5dcffe48ec

@ -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)