How to commit no change and new message?

There’s rarely a good reason to do this, but the parameter is –allow-empty for empty commits (no files changed), in contrast to –allow-empty-message for empty commit messages. You can also read more by typing git help commit or visiting the online documentation. While the tree object (which has a hash of its own) will be … Read more

Git: add vs push vs commit

git add adds your modified files to the queue to be committed later. Files are not committed git commit commits the files that have been added and creates a new revision with a log… If you do not add any files, git will not commit anything. You can combine both actions with git commit -a … Read more

How do I create a new Git branch from an old commit? [duplicate]

git checkout -b NEW_BRANCH_NAME COMMIT_ID This will create a new branch called ‘NEW_BRANCH_NAME’ and check it out. (“check out” means “to switch to the branch”) git branch NEW_BRANCH_NAME COMMIT_ID This just creates the new branch without checking it out. in the comments many people seem to prefer doing this in two steps. here’s how to … 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