Git “NO-HEAD” statement

It can simply mean that, until you make your first add and first commit, you have no branch (not even a master one), hence no HEAD referencing any branch. See more in “Why do I need to explicitly push a new branch?”.

Git merging theirs steps

If your goal is indeed to keep one version or the other, then yes, you will want to use: git checkout <–theirs|–ours> <path> git add <path> Of course, as you say, it’s not ideal. If there’s any way you can avoid this, you should. If you can, try to adopt workflow habits which avoid changing … Read more

Append ticket number using git commit hooks?

You missed a hook. The one you want is commit-msg: This hook is invoked by git commit, and can be bypassed with –no-verify option. It takes a single parameter, the name of the file that holds the proposed commit log message. Exiting with non-zero status causes the git commit to abort. So for example: #!/bin/sh … Read more

How to use USB drive as remote

Plug the USB drive into Desktop, and assuming it’s showing up as J: Initialise a bare repo that will act as the remote: git init –bare J:\repo_name cd to the local repo and: git remote add usb J:\repo_name git checkout master git push usb master The master branch is synced with the usb remote. Now … Read more

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