This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + Turn off server : | |
| $ adb kill-server | |
| + Get device state : | |
| $ adb get-state # offline, bootloader, normal/device | |
| + Get device serial number : | |
| $ adb get-serialno | |
| + Connect via adb WIFI : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + I have a local repo but i want to attach it to a remote repo : | |
| $ git remote add originName http://url | |
| $ git remote -v # check the remote repo name | |
| ++ Push all the branches automaticly | |
| $ git push -u originName --all | |
| ++ Push each branch manually | |
| $ git push -u originName branchName # sometimes use -f at the end # to push only one branch like master but need to push all the rest of branches later | |
| + I have a local repo already attached to a remote repo but i want to attach it to a new remote repo : | |
| $ git remote rename originName originName-old |