S
S
sorry_i_noob2019-08-21 09:24:52
git
sorry_i_noob, 2019-08-21 09:24:52

Is it possible somehow to add changes to a GIT branch from another branch, but without the history? And is it worth it?

Hello.
I have a dev branch where the commits may not have very clear comments. And there is a prod branch.
I want to develop on the dev branch without focusing on commit comments. And then make just one commit in the prod branch with a clear comment, where all the changes in the dev branch will be. And push prod to github, for example. Or a remote git repository (if I work in a team).
Do not expose all your commits (and their comments) to everyone. Even those that were made before some questionable action, such as a mass rename of a function (I make a commit so that I can easily undo the rename if something goes wrong), etc.
Can this be done in Git? And is it worth it or will there be some difficulties because of this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Bille, 2019-08-21
@alexey_bille

https://htmlacademy.ru/blog/useful/git/how-to-squa...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question