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
<> | |
<div className='absolute top-0 left-0 w-full h-full flex items-center justify-center bg-black bg-opacity-60'></div> | |
<div className='w-full sm:w-[450px] absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] flex justify-center items-center'> | |
<div className='relative w-full h-full mx-auto flex items-center justify-center'> | |
<div className='bg-white rounded-lg shadow relative w-full bg-gradient-to-b from-brand-orange to-slate-900 mx-6'> | |
<div className='flex justify-end p-2'> | |
<button | |
type='button' | |
className='bg-transparent rounded-lg text-sm p-1.5 ml-auto inline-flex items-center hover:bg-gray-800 hover:text-white text-white' | |
> |
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
#!/usr/bin/env bash | |
# Usage: ./cherry-pick <commit SHA or tag> | |
# It will cherry-pick given commit, but will only commit files in "src/" folder, skipping the rest. | |
# Bonus: the commit message and authorship information including the timestamp are copied from cherry-picked commit | |
# Credits to https://stackoverflow.com/a/5717615/7193150 | |
git cherry-pick -n $1 | |
git reset HEAD | |
git add src/ |