文件名称:Git常用的33个命令
文件大小:2.14MB
文件格式:PDF
更新时间:2022-08-11 16:44:14
Git
基础命令: 设置用户信息:git config --global user.name "itcast",git config --global user.email "hello@itcast.cn" 查看配置信息:git config --list 获取Git仓库的两种方式: 在本地初始化一个Git仓库:git init 从远程仓库克隆 :git clone [url] 本地仓库命令: git status:查看文件状态 git add [文件名]:将文件的修改加入暂存区 git reset [文件名]:将暂存区的文件取消暂存,或者切换到指定版本git reset --hard [版本号] git commit -m "描述信息" [文件名]:将暂存区的文件修改提交到版本库 git log:查看日志 远程仓库命令: git remote:查看远程仓库 git remote add [shortname] [url]:添加远程仓库 git clone [url]:从远程仓库克隆 git pull [shortname] [branchname]:从远程仓库拉取 git push