Git staging

Caroline@CAROL-HP ~/projects/myGitProject (master)
$ git status
On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        README.md

nothing added to commit but untracked files present (use "git add" to track)

Caroline@CAROL-HP ~/projects/myGitProject (master)
$ git add .

Caroline@CAROL-HP ~/projects/myGitProject (master)
$ git status
On branch master

No commits yet

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)
        new file:   README.md


Caroline@CAROL-HP ~/projects/myGitProject (master)
$

What happens at git init

A subdirectory with the project name is created and a .git folder is placed in the subdirectory. to get .git to show up, you must type “ls -a”

Caroline@CAROL-HP ~/projects
$ git init myGitProject
Initialized empty Git repository in C:/Users/Caroline/projects/myGitProject/.git/

Caroline@CAROL-HP ~/projects
$ cd myGitProject

Caroline@CAROL-HP ~/projects/myGitProject (master)
$ ls

Caroline@CAROL-HP ~/projects/myGitProject (master)
$ ls -a
.  ..  .git

Caroline@CAROL-HP ~/projects/myGitProject (master)
$

How to run the debugger in VSCode for a Node application

  • Running Debug from the main menu was prompting for an environment (node.js)
  • Running by clicking the little bug wasn’t
  • Somehow, I have a launch.json file – don’t know if it is set up properly
  • At this point, the F5 shortcut (start debugging) is working without prompting for an environment