Senior Android Engineer at Zego
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen%ad %C(bold blue)<%an>%Creset' --abbrev-commit --date=short
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\";};f"
tags = !git fetch origin --tags --force && git lg
nuke = "!git branch | grep -v 'main' | xargs git branch -D"
adb shell am start -d url
adb shell "dumpsys activity activities | grep mResumedActivity"
adb tcpip 5555
adb shell "ip addr show wlan0 | grep -e wlan0$ | cut -d\" \" -f 6 | cut -d/ -f 1" // to obtain the phone's IP address
adb connect <Android_device_id>:5555
adb connect <ip_address>:5555