Saturday, December 21, 2019

GIT

Download and install the latest LFS.

(agree to all defaults)

Download and install the latest GIT.

- [checked] Git LFS
- Use notepad2 as Git's default editor
- Use Git from bash only
- Use OpenSSH
- Use the OpenSSL library
- Checkout Windows-style, commit Unix-style line endings
- Use MinTTY
- [checked] Enable file system caching
- [checked] Enable Git Credential Manager

Configure

Create user environment variable: 
HOME = C:\Data\Web\FileSystem

Run bash: 
Start > GIT > GIT Bash 

$git config --global user.email "you@example.com"
$git config --global user.name "Your Name"

$ git init
Initialized empty Git repository in C:/Data/Web/FileSystem/.git/

$ git status
On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        [many files listed here]

$ git add .

$ git status
On branch master

No commits yet

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)
        [many files listed here]

$ git commit .

At this point your text editor pops up with 
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.

You must write something without # and save and close the editor.

$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .gitconfig

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

$ vi .gitignore
.gitconfig
.viminfo
.bash_history
.minttyrc
[esc]:wq

$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .gitignore

$ git add .
$ git commit .

$ git status
On branch master
nothing to commit, working tree clean
{ "loggedin": false, "owner": false, "avatar": "", "render": "nothing", "trackingID": "UA-36983794-1", "description": "", "page": { "blogIds": [ 698 ] }, "domain": "holtstrom.com", "base": "\/michael", "url": "https:\/\/holtstrom.com\/michael\/", "frameworkFiles": "https:\/\/holtstrom.com\/michael\/_framework\/_files.4\/", "commonFiles": "https:\/\/holtstrom.com\/michael\/_common\/_files.3\/", "mediaFiles": "https:\/\/holtstrom.com\/michael\/media\/_files.3\/", "tmdbUrl": "http:\/\/www.themoviedb.org\/", "tmdbPoster": "http:\/\/image.tmdb.org\/t\/p\/w342" }