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
SET FOREIGN_KEY_CHECKS=0; | |
-- Here's where we reset the orders | |
TRUNCATE `sales_flat_order`; | |
TRUNCATE `sales_flat_order_address`; | |
TRUNCATE `sales_flat_order_grid`; | |
TRUNCATE `sales_flat_order_item`; | |
TRUNCATE `sales_flat_order_status_history`; | |
TRUNCATE `sales_flat_quote`; | |
TRUNCATE `sales_flat_quote_address`; |
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 | |
echo "Tracking all remote branches" | |
for remote in `git branch -r | sed "s/origin\///g"`; | |
do git branch --track $remote origin/$remote; | |
done |
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 | |
echo "Deleting remote branches contained within to-be-deleted-branches.txt" | |
while read BRANCH_NAME | |
do | |
echo -e "$BRANCH_NAME \n" | |
if [ ! -L "${BRANCH_NAME}" ]; then | |
git push origin --delete $BRANCH_NAME | |
fi | |
done < to-be-deleted-branches.txt |
NewerOlder