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

How to detect a USB drive has been plugged in?

It is easy to check for removable devices. However, there’s no guarantee that it is a USB device: var drives = DriveInfo.GetDrives() .Where(drive => drive.IsReady && drive.DriveType == DriveType.Removable); This will return a list of all removable devices that are currently accessible. More information: The DriveInfo class (msdn documentation) The DriveType enumeration (msdn documentation)

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