Skip to content

Instantly share code, notes, and snippets.

@YousraBD
Last active April 30, 2021 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YousraBD/ed026a03af400c36c2db19b4bfba6b92 to your computer and use it in GitHub Desktop.
Save YousraBD/ed026a03af400c36c2db19b4bfba6b92 to your computer and use it in GitHub Desktop.
$ git status
On branch ts-setup
$ git checkout -b migrate-components # checkout from ts-setup
$ mv components/Button.jsx components/Button.tsx
$ git add . && git commit -m 'Migrate button to TS'
$ git push -u origin migrate-components
$ git checkout migrate-to-firebase
$ git reset --soft develop
$ git restore --staged .
$ git branch -M setup-firebase
$ git status # we are on master
On branch master
$ git checkout -b ts-setup # checkout from master
$ npm i -D typescript && npx tsc --init
$ git add . && git commit -m 'Setup TypeScript'
$ git push -u origin ts-setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment