detailed | git-scm getting started
sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
sudo apt-get install git
apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
git --version
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git config --list
start git in your project folder
git init
check remotes
git remote -v
add remote project to local git
git remote add origin https://github.com/you/project
clone a folder online
git clone https://github.com/husmen/FourPlusOne.git
check status
git status
add files
git add .
git add test.py
commit changes
git commit -m .
synchronize changes
git pull
git pull origin master
git push
git push origin master
ignore files
cat .gitignore
review history
git log
git diff
git show
cancel last commit
git commit --amend
git reset [commit]
git reset --hard [commit]
manipulating files
git rm grit.gemspec
git mv file_from file_to