Skip to content

Instantly share code, notes, and snippets.

View kickthemooon's full-sized avatar
🧑‍💻

Adnan kickthemooon

🧑‍💻
View GitHub Profile
@kickthemooon
kickthemooon / two-way-diff.sh
Last active October 13, 2019 11:57
Bash script to create a two way diff list of files between 2 git branches. It filters out files from the list which are not present in the current branch.
#!/bin/bash
cd ${0%/*}
while [[ $# -gt 0 ]]; do
case "$1" in
--branch-one=*)
SOURCE_BRANCH="${1#*=}"
;;
--branch-two=*)