码迷,mamicode.com
首页 > 其他好文 > 详细

git简单使用

时间:2018-04-26 17:03:14      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:config   使用   mail   comm   git init   stat   email   info   nbsp   

Git 全局设置
git config --global user.name "k*k"
git config --global user.email "1154*****@qq.com"
创建新版本库
git clone http://192.168.1.3/kkk/damo.git
cd damo
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
已存在的文件夹或 Git 仓库
cd existing_folder
git init
git remote add origin http://192.168.1.3/kkk/damo.git
git add .
git commit
git push -u origin master

--------------------------------------------------------------------------------------------------------------------------------------

 命令

E:\Git\workplace\damo>git status        //查看状态
//下面开始提交
git add src/
git commit -m "src"
git push -u origin master
上面三步做完后就算是提交。
---------------------------------------
git merge //查看是否文件被修改不同

技术分享图片

技术分享图片

 

git简单使用

标签:config   使用   mail   comm   git init   stat   email   info   nbsp   

原文地址:https://www.cnblogs.com/kaiwen1/p/8952799.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!