git常用命令


1.从远程仓库拉取daima

git clone https://gitee.com/

2.添加暂存区

git add .

3.提交仓库

git commit -m '提交信息'

4.推送到远程仓库

git push

git clone https://gitee.com/dangcungaoyuan/web_auto_test.git # 从远程仓库复制下载代码

git status # 命令用于查看在你上次提交之后是否有对文件进行再次修改。 git add . # 添加文件到暂存区 git commit -m '这里是提交的说明' # 提交代码 git push # 推送代码到远程仓库

git branch # 查看本地分支 git branch -r # 查看远程仓库的分支 git branch dev # 新建分支 git checkout dev # 切换至dev分支

git push origin dev # 把分支代码提交至远程仓库 git push origin --delete dev # 删除远程的dev分支 git branch -d dev # 删除本地dev分支