Initializing a new Git repo

0

/Users/Sosie/code/lukeko
git init
git add .
git commit -m "init"

Make changes and then

git commit -a -m "summary of what changed"

If you add a file

git add .
git commit -a -m "summary of what was added"

To roll back changes

git reset --hard HEAD

To check status

git status

  • 0 posts
  • 0 subtopics
  • 4 months ago by vince