Resetting remote to a certain commit

Assuming that your branch is called master both here and remotely, and that your remote is called origin you could do: However, you should avoid doing this if anyone else is working with your remote repository and has pulled your changes. In that case, it would be better to revert the commits that you don’t … Read more

Uninitialize git repository

git stores all the repository related data in a folder named “.git” inside your repository folder. So you just want to keep your files but change it into a “not-git-repository”. Warning: this is irreversible! The only files that might remain are hidden “.gitignore” files (but only if you added them yourself or using some tool … Read more

How to `git pull` while ignoring local changes?

If you mean you want the pull to overwrite local changes, doing the merge as if the working tree were clean, well, clean the working tree: If there are untracked local files you could use git clean to remove them. git clean -f to remove untracked files -df to remove untracked files and directories -xdf … Read more

Git Pull is Not Possible, Unmerged Files

Say the remote is origin and the branch is master, and say you already have master checked out, might try the following: This basically just takes the current branch and points it to the HEAD of the remote branch. WARNING: As stated in the comments, this will throw away your local changes and overwrite with … Read more

How to recover stashed uncommitted changes

The easy answer to the easy question is git stash apply Just check out the branch you want your changes on, and then git stash apply. Then use git diff to see the result. After you’re all done with your changes—the apply looks good and you’re sure you don’t need the stash any more—then use git stash drop to get rid of it. I … Read more

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