Git squash history after merge

I was able to squash several commits after multiple merges from the master branch using the strategy found here: https://stackoverflow.com/a/17141512/1388104 git checkout my-branch # The branch you want to squash git branch -m my-branch-old # Change the name to something old git checkout master # Checkout the master branch git checkout -b my-branch # Create … Read more

How to re-merge a file in the git?

git checkout -m <filename> This will remove it from the index, and revert back to a “conflicted” file that has all of the markers required to then do a merge. From the git help checkout man page: -m, –merge When switching branches, if you have local modifications to one or more files that are different … Read more

Git merge flattening

“git merge –squash” (after “git fetch”; “git pull” is just fetch+merge, pehaps it also allows –squash option) might be what you want. From git-merge(1): –squash Produce the working tree and index state as if a real merge happened, but do not actually make a commit or move the HEAD, nor record $GIT_DIR/MERGE_HEAD to cause the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)