# git **Repository Path**: web-Kit/git ## Basic Information - **Project Name**: git - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-06 - **Last Updated**: 2021-10-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### git指令 git config --list 查看 配置 git里面也有远程仓库显示 git 初始化 git init git 所有资源添加在暂存区 git add . git 增加描述 git commit -m '描述' git 进入远程仓库 ### git remoet 一般都是仓库的操作 git remote add origin url(仓库地址) git remote add origin <你的项目地址> git remote rm origin 删除当前远程仓库 git push -u origin 分支 仓库路径查询查询: git remote -v ###仓库分支 ##创建新的分支 git branch ’分支名字‘ ###查看分支仓库 git branch -v ##切换分支 git checkout '分支名字' 删除仓库分支 git branch -d '分支名字' ###使用 git下载仓库内容 git clone '仓库的url地址' 下载到本地了 ###查看修改记录 git log ###退还之前的版本 git reset (commitid)commitId使用git log 返回的哈希值