轉載自:http://www.xbc.me/tag/git-command/
Git 常用命令整理
取得Git倉庫
提交你的修改
基本的分支管理
在windows安裝配置Git開發環境
安裝Msysgit
配置本地的Git
生成你的Public Key
ssh-keygen –C “你的email地址 “ –t rsa
設置Github帳號的Public Key
設置你的Email和Nickname
輸入命令
git config –global user.email 你的email地址
git config –global user.name "Arthur"
Clone你的項目
git@github.com:caijiamx/Magento-Theme.git
命令行下的Git開發
ssh git@github.com
配置你的Github上Username和Token
git config –global github.user caijiamx
Git config –global github.token your token
Git下的開發
touch readme.txt
//輸入hello world
git add readme.txt
git commit –m "first commit"
git remote add origin git@github.com:directoo/Magento-Theme.git
git push origin master