How to replace local branch with remote branch entirely in Git?

Make sure you’ve checked out the branch you’re replacing (from Zoltán’s comment). Assuming that master is the local branch you’re replacing, and that “origin/master” is the remote branch you want to reset to: git reset –hard origin/master This updates your local HEAD branch to be the same revision as origin/master, and –hard will sync this … Read more

How to search a Git repository by commit message?

To search the commit log (across all branches) for the given text: git log –all –grep=’Build 0051′ To search the actual content of commits through a repo’s history, use: git grep ‘Build 0051’ $(git rev-list –all) to show all instances of the given text, the containing file name, and the commit sha1. Finally, as a … Read more

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