Skip to content

Instantly share code, notes, and snippets.

@johnnaegle
Last active December 17, 2015 03:39
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 johnnaegle/5545229 to your computer and use it in GitHub Desktop.
Save johnnaegle/5545229 to your computer and use it in GitHub Desktop.
Initialize a new git repo in the local file system
~/projects> mkdir scratch
~/projects> cd scratch/
~/projects/scratch> git init .
Initialized empty Git repository in /Users/johnnaegle/projects/scratch/.git/
~/projects/scratch> touch README.md
~/projects/scratch> git commit -m "Create Empty Repository"
[master (root-commit) bda9f27] Create Empty Repository
0 files changed
create mode 100644 README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment