How do you rename a Git tag?

Here is how I rename a tag old to new: git tag new old git tag -d old git push origin new :old The colon in the push command removes the tag from the remote repository. If you don’t do this, Git will create the old tag on your machine when you pull. Finally, make … Read more

How can I revert multiple Git commits?

Expanding what I wrote in a comment The general rule is that you should not rewrite (change) history that you have published, because somebody might have based their work on it. If you rewrite (change) history, you would make problems with merging their changes and with updating for them. So the solution is to create … Read more

Using Git with Visual Studio [closed]

In Jan 2013, Microsoft announced that they are adding full Git support into all their ALM products. They have published a plugin for Visual Studio 2012 that adds Git source control integration. Alternatively, there is a project called Git Extensions that includes add-ins for Visual Studio 2005, 2008, 2010 and 2012, as well as Windows … Read more

How do I show my global Git configuration?

You can use: git config –list or look at your ~/.gitconfig file. The local configuration will be in your repository’s .git/config file. Use: git config –list –show-origin to see where that setting is defined (global, user, repo, etc…)

You have not concluded your merge (MERGE_HEAD exists)

The problem is your previous pull failed to merge automatically and went to conflict state. And the conflict wasn’t resolved properly before the next pull. Undo the merge and pull again. To undo a merge: git merge –abort [Since git version 1.7.4] git reset –merge [prior git versions] Resolve the conflict. Don’t forget to add … Read more

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