Git: How do I force “git pull” to overwrite local files?

⚠ Important: If you have any local changes, they will be lost. With or without –hard option, any local commits that haven’t been pushed will be lost.[*] If you have any files that are not tracked by Git (e.g. uploaded user content), these files will not be affected. First, run a fetch to update all origin/<branch> refs to latest: Backup your … Read more

How do I rename a local Git branch?

If you want to rename a branch while pointed to any branch, do: If you want to rename the current branch, you can do: If you want to push the local branch and reset the upstream branch: And finally if you want to Delete the remote branch: A way to remember this is -m is … Read more

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