git工具基本使用方法

git工具基本使用方法

--初始化
$git init

--克隆,将仓库内容复制到本地
$git clone http://192.168.10.87:6610/projects/jzxn_code

--将本地调整的内容增加到本地仓库
$git add *

--将本地调整的内容提交到本地仓库
$git commit -m 'zhengch';


--将本地调整的内容提交到本地仓库,同时更新远程仓库目录
$git commit -a -m 'zhengch';


--提交前比对是否存在差异
$git pull

---提交到远端仓库
$git push -u origin master

猜你喜欢

转载自blog.csdn.net/zhengcaihua0/article/details/81107820