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
| // list of existing users | |
| adb shell pm list users | |
| >> Users: | |
| UserInfo{0:Owner:4c13} running | |
| // current user id | |
| adb shell am get-current-user | |
| >> 0 | |
| // create guest user (must be guest, phone does not allow additional full-fledged user) |
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
| // generate patch file from the topmost <n> commits from a specific SHA-1 commit hash | |
| git format-patch -<n> <SHA-1> --stdout > <name_of_patch_file>.patch | |
| // example | |
| git format-patch -10 HEAD --stdout > patch-of-last-10-commits.patch |
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
| git reset --hard origin/master | |
| git rm -r --cached . | |
| git add . | |
| git commit -m "commit message" | |
| git rebase -i <commit-id> | |
| prepísať "pick" na "f" od druhého riadku dole, uložiť a zavrieť vim | |
| git rebase -i --root | |
| zase prepísať "pick" na "f" od druhého riadku dole, uložiť a zavrieť vim | |
| git push -f |