git command

初始

git init

创建一个本地仓库的克隆版本

git clone /path/to/repository

远端服务器上的仓库

git clone username@host:/path/to/repository

添加暂存区

git add 

提交实际更动

git commit -m "代码提交信息"

添加远程服务器

git remote add origin 

提交远端

git push origin master //-f 强行提交

拉取远端

git pull origin master

commit

查看提交

git log

回滚提交

git reset --hard id

你可能感兴趣的:(git服务器github)