Skip to content

Instantly share code, notes, and snippets.

View rafikFares's full-sized avatar
🏠
Working from home

Rafik rafikFares

🏠
Working from home
View GitHub Profile
+ 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 :
@rafikFares
rafikFares / Git
Last active January 7, 2025 10:12
My Git
+ 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