# mi.com **Repository Path**: li_liuqing/mi.com ## Basic Information - **Project Name**: mi.com - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目说明文件 ## 一、项目文件名称:mi.com > src文件夹: > > > font-icon文件夹 :iconfont图标 > > > > html文件夹: > > > > > home-page.html :主页 > > > > > > product-details.html:商品详情 > > > > > > shopping-cart.html:购物车 > > > > > > sign-in.html:登录 > > > > > > sign-up.html:注册 > > > > images文件夹:图片 > > > > interface文件夹:php文件 > > > > js文件夹: > > > > > library文件夹:cookie、jQuery、jQuery.lazyload等库 > > > > > > home-page.js、product-details.js、shopping-cart.js、sign-in.js、sign-up.js等 > > > > styles文件夹: > > > > > css文件夹 > > > > > > less文件夹 ## 1、项目初始化 ```bash $ git init # 初始化一个git仓库 $ npm init -y # 初始化node项目 ``` ## 2、用户设置 ```bash # 用户设置 每台电脑只需要一次 $ git config --global user.name "SunnyLee" $ git config --global user.email "angel.qing@aliyun.com" ``` ## 3、常用命令 ```bash # 查看状态 $ git status # 添加管理(添加到暂存区) $ git add filename # 添加指定文件 $ git add path/ # 添加指定目录 $ git add . # 添加项目中所有文件和目录 # 从暂存区中移除(不管理) $ git rm --cached filename # 提交到本地仓库 $ git commit -m "v 1.0.0" # 查看提交记录 $ git log # 回复到历史提交版本 $ git reset --hard hash(前6位) # 查看帮助 $ git --help ``` ### 远程仓库操作 ```bash # 设置远程仓库源地址 $ git remote add origin https://github.com/Sunny-Lee-qing/mi.com.git # 将本地仓库中的master分支推送到远程仓库 $ git push -u origin master # 从远程仓库拉取项目 $ git pull origin master # 第一次获取项目 使用克隆 $ git clone https://github.com/Sunny-Lee-qing/mi.com.git # 恢复文件 $ git checkout filename ``` ### 分支操作 ```bash # 新建分支 $ git branch 分支名 # 查看分支 $ git branch # 切换分支 $ git ckeckout 分支名 # 合并分支 $ git merge 分支名 ```