M
M
mishapsv2019-03-19 23:59:37
git
mishapsv, 2019-03-19 23:59:37

How to make a pull request from the master to a new branch so that the PR has all the files from the master?

I create a new branch, make a commit, push, but with the PR, only the changes of this last commit are visible.
It is necessary that the changes in the PR are all project files, as added.
I can't google this problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2019-03-20
@Zarom

But this is an invented problem. She is not. Git doesn't work like that and shouldn't.
A similar thing can be achieved by creating a branch, then deleting all files from it and pushing it to the turnip. After that, the PR to this branch will contain all the files from master.

D
dcroid, 2020-03-17
@dcroid

without deleting files:
make a new branch from the master further

git reset --hard HEAD~12 # number of
commits git merge --squash [email protected]{1}
git commit
git push --force

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question