Skip to content

Instantly share code, notes, and snippets.

Jianing Zhang jianinz

Block or report user

Report or block jianinz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jianinz
jianinz / gitdifflogcheatsheet.txt
Last active Apr 13, 2018
Git diff and log cheat sheet
View gitdifflogcheatsheet.txt
git diff A..B_ == git diff B..A
git diff A...B != git diff B...A
git log A..B != git log B..A
git log A...B == git log B...A
git diff A..B shows all differences made on either A or B if they are diverged
git diff A...B shows the changes in B that are not in A if it diverged from A
git log A..B walk through head of B back to head of A ( or current position of B back to current position of A) and prints out difference from B to A
git log A...B shows all commits difference made on either A or B if they are diverged
@jianinz
jianinz / setup_android_studio
Created Oct 17, 2014
AndroidStudio installation automation bash script
View setup_android_studio
#!/bin/bash
ANDROID_HOME=~/android-studio/sdk
ANDROID_SDK="${ANDROID_HOME}"
AS_EXECUTABLE_HOME=~/android-studio/bin
AS_HOME=~/android-studio
AS_FILENAME='android-studio-bundle-135.1339820-linux.tgz'
AS_URL="https://dl.google.com/android/studio/install/0.8.6/${AS_FILENAME}"
# Check if there is running process
AS_PID=`pgrep -f AndroidStudio`
You can’t perform that action at this time.