version control - Git: Uncommit without effecting changes -


i have made few commits branch , pushed remote. want make them single commit. how uncommit previous few commits in branch without effecting files?

if had not pushed commits remote branch, have used e.g. git rebase -i squash commits one. see how can merge 2 commits one?

but commits pushed, there no proper way instead of overwriting history, bad idea if others have pulled changes.

if can it, use git rebase described above , see force "git push" overwrite remote files .


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -