Github Commit Syntax to Link a Pull Request/ Issue

Use the documented auto-linking format for issues across repositories. Syntax: {owner}/{repository}#{issue_number} Example: mojombo/jekyll#1 When such formatted text is present in a commit message, it’s automatically transformed into a clickable link which will redirect one to https://github.com/{owner}/{repository}/issues/{issue_number}

How can I uncommit the last commit in a git bare repository?

You can use the git update-ref command. To remove the last commit, you would use: $ git update-ref HEAD HEAD^ Or if you’re not in the branch from which you cant to remove the last commit: $ git update-ref refs/heads/branch-name branch-name^ You could also pass a sha1 if you want: $ git update-ref refs/heads/branch-name a12d48e2 … Read more

SVN- How to commit multiple files in a single shot

You can use an svn changelist to keep track of a set of files that you want to commit together. The linked page goes into lots of details, but here’s an executive summary example: $ svn changelist my-changelist mydir/dir1/file1.c mydir/dir2/myfile1.h $ svn changelist my-changelist mydir/dir3/myfile3.c etc. … (add all the files you want to commit … Read more

How to display open transactions in MySQL

How can I display these open transactions and commit or cancel them? There is no open transaction, MySQL will rollback the transaction upon disconnect. You cannot commit the transaction (IFAIK). You display threads using SHOW FULL PROCESSLIST See: http://dev.mysql.com/doc/refman/5.1/en/thread-information.html It will not help you, because you cannot commit a transaction from a broken connection. What … Read more