摘要:
列出所有本地分支 git branch 列出所有远程分支 git branch -r 新建一个分支,但依然停留在当前分支 git branch [branchname] 新建一个分支,并切换到该分支 git checkout -b [branchname] 切换到主分支 $ git checkout 阅读全文
摘要:
配置git本地信息 git config --global user.name "你的名字或昵称" git config --global user.email "你的邮箱" 阅读全文
摘要:
一、克隆文件到本地 在指定文件夹Git Bash Here打开Git窗口,输入 git clone "https://***.git" #将远程仓库克隆到本地 二、提交到远程仓库 查看状态 git status #查看当前本地代码的状态 添加所有文件到暂存区 git add . #文件从工作区到暂存 阅读全文