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

【git基本操作】总结

时间:2018-11-15 18:31:10      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:关联   基本   com   --   span   没有   remote   读取   glob   

查看当前全部配置

git config -l

 

全局级配置,如果没有仓库级别的特殊配置,默认读取这个配置

git config --global user.name "name" 
git config --global user.email "email" 

仓库级配置,一般一个项目配置一次

git config user.name "name" 
git config user.email "email" 

 

关联远程完全空白项目

#git初始化 
git init 
#设置remote地址 
git remote add origin 地址  
git add .  
git commit -m "注释" 
git push

 

【git基本操作】总结

标签:关联   基本   com   --   span   没有   remote   读取   glob   

原文地址:https://www.cnblogs.com/ldy-miss/p/9964780.html

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