Git技巧

作者: ShindouHiro | 来源:发表于2015-09-05 22:36 被阅读51次
  • 常用技巧
git clone + 项目地址 #克隆项目
git branch #查看当前分支
git checkout  + 分支名 #切换到分支上
git diff  #查看修改内容
git reset --hard HEAD #回滚(未提交)
git reset --hard HEAD^(已提交)
brew install tig
git rebase -i
git config --global alias.co checkout #配置别名

相关文章

  • Git stash 技巧

    Git stash常用技巧 git stash save git stash list git stash app...

  • 2016-06-24 阅读整理

    Git Git 基础命令Git 分支管理Git 分支合并Git 公钥提交Git 常用技巧Git 设置别名 Andr...

  • GIT的使用

    ##git的使用技巧 git安装 mac端:1,下载Git installer,地址;http://git-scm...

  • 查看某一行代码的修改历史

    git小技巧:git blame && git show 查看某一行代码的修改历史 $ git log -L st...

  • git常用命令及使用技巧

    git常用命令及使用技巧.md git 客户端安装 Git客户端 下载地址: https://www.git-sc...

  • git 笔记

    git 使用技巧 git 介绍 记住,在 Git 中任何 已提交的 东西几乎总是可以恢复的。 甚至那些被删除的分支...

  • Git技巧

    git设置快捷键/快捷方式 首先打开.gitconfig文件 在.gitconfig中添加 [alias] 标签,...

  • git 技巧

    git clone 时直接提交用户名和密码git clone https://用户名:密码@地址 当用户名中包含...

  • Git技巧

    常用技巧

  • Git 技巧

    重置已经 push 到服务器的 commit 终端命令:git push 远端branch +comm...

网友评论

      本文标题:Git技巧

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