git: general commands

git init // initialize new repository
git remote add origin ssh://username@domain.tld/path/to/git/project.git
git add . //add all files in this folder to repository
git commit -a -m 'commit description' // make commit
git checkout -b new // create new branch
git checkout master // use master branch
git push // send changes to repository
git pull // take changes from repository
git reset --hard COMMIT // reset to COMMIT
git reset --hard HEAD // reset to last commit
git reset --hard HEAD-1 // reset to one from last
git merge new // if you in another branch will merge change in new for current branch
git reflog // list of last commits
git log // git logs
git show COMMIT // list of change in commit
git clone ssh://username@domain.tld/path/to/git/repository