首页 > 代码库 > git操作

git操作

新建:

[root@mhc MysqlOnAutopilot_git]# git init
初始化空的 Git 版本库于 /root/.m2/repository/MysqlOnAutopilot_git/.git/
[root@mhc MysqlOnAutopilot_git]# git remote add origin https://github.com/mhcvs2/MysqlOnAutopilot.git
[root@mhc MysqlOnAutopilot_git]# git pull origin master
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
来自 https://github.com/mhcvs2/MysqlOnAutopilot
 * branch            master     -> FETCH_HEAD



git操作