Git - Our First Repository

From EdWiki

Our First Git Repository

mkdir first-git-repo
cd first-git-repo
git init
  • Creates the basic artifacts in the .git directory
echo “Hello World” > hello.txt
git add .
  • Begin tracking new file(s)
  • Adds content to the index
  • Index reflects the working version
  • Must be run prior to a commit
git commit -a -m ‘Check in number one’