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
| # Move code from one repo to another, preserving commit history | |
| # Source: http://stackoverflow.com/a/17373088/963881 | |
| cd repo2 | |
| git checkout master | |
| git remote add r1remote **url-of-repo1** | |
| git fetch r1remote | |
| git merge r1remote/master | |
| git remote rm r1remote | |
| # Push to master without having to --set-upstream-to first |
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
| #!/bin/bash | |
| REQUIRED_ARGS=2 | |
| PULL_DIR="./" | |
| ADB_PATH=`which adb` | |
| if [ $? -ne 0 ] | |
| then | |
| echo "Could not find adb!" | |
| exit 1 | |
| fi; |
NewerOlder