美文网首页
git  提交代码常用命令

git  提交代码常用命令

作者: _冇毒 | 来源:发表于2018-05-02 17:00 被阅读8次

代码回退: git reset --hard HEAD^
切换分支:git checkout name
撤销修改:git checkout -- file
删除文件:git rm file
查看状态:git status
添加记录:git add file 或 git add .
添加描述:git commit -m "miao shu nei rong"
同步数据:git pull
提交数据:git push origin name

分支操作
查看分支:git branch
创建分支:git branch name
切换分支:git checkout name
创建+切换分支:git checkout -b name
合并某分支到当前分支:git merge name
删除分支:git branch -d name
删除远程分支:git push origin :name

合并分支 $ git merge name

相关文章

  • Git常用的命令

    1.git常用命令git 更新提交代码命令 (develop 分支上) 2.chaddadd//git 更新提交代...

  • Git学习----版本回退(reset & revert)

    前提 git已提交几次代码。具体方式见:Git命令学习----常用命令[https://www.jianshu.c...

  • Git常用命令

    Git常用命令: 1、新建代码库 2、配置Git 3、增删文件 4、代码提交 5、分支 6、标签tag 7、查看信...

  • 工作常用的git指令

    GIT常用命令 远程仓库 分支 tag 提交代码 子模块 导出 偷懒配置

  • Git

    Git Git常用命令 提交代码到本地仓库 删除所有untracked的文件 回退版本 从远端拉取代码 同步本地代...

  • 最全的 Git 常用命令清单

    Git常用命令 仓库 配置 增加/删除文件 代码提交 分支 标签 查看信息 远程同步 撤销 其他 以上常用命令来自...

  • Git 常用命令

    Git 常用命令 仓库 配置 增加/删除文件 代码提交 分支 标签 查看信息 远程同步 撤销 其他 以上常用命令来...

  • git常用命令

    git常用命令 git rebase 合并提交

  • Git使用心得

    1. git 常用命令 . git add ——添加准备提交的文件. git commit -m "提交描述"...

  • git配置

    Git配置 在线配置 第一次使用GIT,创建仓库并提交项目代码 常用命令配置 Git 提供一个git config...

网友评论

      本文标题:git  提交代码常用命令

      本文链接:https://www.haomeiwen.com/subject/edmcrftx.html