GitHub Essential Commands

A GitHub reference for my personal use, also available to whoever might need it.

Have fun.

git add .  add files to be tracked

git commit  commit current snapshot of the files.  To avoid the text editor:  git commit -m “your message”

git diff check the changes to the tracked files from the last commit

git log  check the history of your project

git show <hash> To view the details of a particular commit and the files that were changed

git push origin master Push the snapshot to a remote repository. Origin is the default name (alias) of your remote repository and master is the remote branch.

PHP reference available here.

Lasă un răspuns

Adresa ta de email nu va fi publicată. Câmpurile obligatorii sunt marcate cu *