Authentication failed to bitbucket

If you got authentication issues with the GIT console, you can try to switch your configuration to HTTPS and specify user & password with the following command : https://<username>:<password>@bitbucket.org/<username>/<repo>.git But careful: Coming back to this answer that I made a very long time ago, I want to give credits to @ChristopherPickslay for pointing out that … Read more

How to interactively (visually) resolve conflicts in SourceTree / git

From SourceTree, click on Tools->Options. Then on the “General” tab, make sure to check the box to allow SourceTree to modify your Git config files. Then switch to the “Diff” tab. On the lower half, use the drop down to select the external program you want to use to do the diffs and merging. I’ve … Read more

How to see remote tags?

You can list the tags on remote repository with ls-remote, and then check if it’s there. Supposing the remote reference name is origin in the following. git ls-remote –tags origin And you can list tags local with tag. git tag You can compare the results manually or in script.

Sourcetree – undo unpushed commits

Right click on the commit you like to reset to (not the one you like to delete!) Select “Reset master to this commit” Select “Soft” reset. A soft reset will keep your local changes. Source: https://answers.atlassian.com/questions/153791/how-should-i-remove-push-commit-from-sourcetree Edit About git revert: This command creates a new commit which will undo other commits. E.g. if you have … Read more

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