We're using GitHub here. I have a friend who branched our master branch, and I want to checkout his branch, make a few mods, then put them into his branch.
My thought is to grab his branch using git checkout --track -b origin/my_friends_branch
then making my mods and committing, and then....not really sure. I'd like to send him a pull request but am not sure how to do that on a remote branch?
Also not sure if I should take the opportunity to dip my toes in the rebase
waters, which I've been slow to try, simply out of ignorance, and whether when working on a remote branch it makes special sense to do so.
git pull --all
git checkout my_friends_branch
git push origin my_friends_branch
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.