Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question