Initializing a new Git repo


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
  • 7 months ago by vince