github - Git: Push differences between two branches of different repos as a single commit to another repo -


i made fork of public github repo on private gitlab repo. made several commits in single branch of fork , want push these changes (differences between public repo branch , private repo branch) single commit public repo branch on github again. want use command line.

does know how this?
think it's git squash.

see old answer "in git, difference between merge --squash , rebase? "

you can make branch in private repo, merge --squash fix branch on it, , push new branch composed of single commit.

git checkout -b newbranch origin/master git merge --squash my_fix_branch git push -u origin newbranch 

from remote private repo on github, can make pull request new pushed branch, merge single commit original repo.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -