Skip to content

Instantly share code, notes, and snippets.

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

@TristanWYL
TristanWYL / git-collaborative-workflow.md
Created June 26, 2022 09:17 — forked from adamloving/git-collaborative-workflow.md
Simple Git workflow for collaborating on a project. I wrote this to help a co-worker learn Git (and help me remember after a year of working on my own).

Creating the change

$ git checkout -b my-feature

... modify code ....

$ git add <filename> 
$ git commit -m “my feature is this”
@TristanWYL
TristanWYL / How-to-debug-typescript.md
Last active April 8, 2022 01:10
How to debug typescript in vscode
  1. some packages should be installed locally

    npm install -S ts-node typescript
  2. To make sourceMap work normally, it would best enable watching the update of ts files, such as the generated .js file is always most updated:

tsc -w