Answer the question
In order to leave comments, you need to log in
How to push only the last commit?
There is a master branch, there is a doc branch (there are all documentation changes) in master there is only a completed version, so how can you pour into master only the last commit in doc and not the whole history?
Answer the question
In order to leave comments, you need to log in
Standing in master, execute git cherry-pick doc
However, it is unlikely that you need one last commit, perhaps you meant "the entire history of doc in one commit".
This can be done by running in master git merge --squash doc
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question