Skip to content

Instantly share code, notes, and snippets.

@Falieson
Last active May 31, 2018 21:43
Show Gist options
  • Save Falieson/e82e69210de1c9b1feefee27491579b2 to your computer and use it in GitHub Desktop.
Save Falieson/e82e69210de1c9b1feefee27491579b2 to your computer and use it in GitHub Desktop.
S4. F01. Init Git (ARTICLE: TS-Module w/ Declarations (Part 1/4))
### TS-Module w/ Declarations (Part 1/4)
# http://TGRstack.com/#ts-module_articles_part-1
# Init Git, branch, commit (Section 4. Figure 01.)
###
falieson:./ts-module/$ git init
Initialized empty Git repository in ./ts-module/.git/
falieson:./ts-module/$ git checkout -b mvp
falieson:./ts-module/$ echo "dist/" >> ".gitignore" # don't add tsc output to the source
falieson:./ts-module/$ git add .
falieson:./ts-module/$ git status
On branch mvp
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: .gitignore
new file: src/hello/HelloWorld.ts
new file: src/index.ts
modified: tsconfig.json
falieson:./ts-module/$ git commit -m "INIT w/ tsconfig & HelloWorld"
[mvp 5867767] INIT w/ tsconfig & HelloWorld
4 files changed, 84 insertions(+)
create mode 100644 .gitignore
create mode 100644 src/hello/HelloWorld.ts
create mode 100644 src/index.ts
create mode 100644 tsconfig.json
falieson:./ts-module/$ git log
commit 5867767587440faf8bd05847d3d85e14b9f70410 (HEAD -> mvp)
Author: Florian Mettetal <florian.mettetal@gmail.com>
Date: Thu May 31 14:40:18 2018 -0700
INIT w/ tsconfig & HelloWorld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment