- create API token and paste into file
- update repo owner and repo name values
- download JSON export of trello board
- move export to same directory as script, name it
trello.json - run script - it will create issues from each card. Fields supported:
- card name -> issue title
- description
- labels (only name, not colors)
- state
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
| ssh() { | |
| #get last argument | |
| for HOST; do true; done | |
| #if it's not an alias just use white | |
| if [[ $HOST == *"@"* ]]; then | |
| COLOR=7 | |
| else | |
| #read in config to find color for alias |
Base off this gist: https://gist.github.com/olivergierke/3215345 a small extension to avoid writing the checkout command, we store the hash in a variable then checkout the other branch and proceed with the cherry-picking:
[alias]
last = !git log -n 1 --pretty=format:%H $1
cp-last-to = "!sh -c 'HASH=`git last` && git checkout \"$0\" && git cherry-pick $HASH'"
So you can just do: