zoukankan      html  css  js  c++  java
  • git 常用操作

    git windows版下载镜像:https://npm.taobao.org/mirrors/git-for-windows/

    git branch 查看本地分支列表

    git branch -r 查看远程分支

    git stash 将工作空间临时保存

    git stash save "msg"  将工作空间临时保存并且添加描述信息

    git stash apply 从临时保存中取出最近一次保存并使用

    git stash list 查看已临时保存修改列表

    git stash apply n 从临时保存中取出编号为n的保存并使用

     git branch -a 查看分支列表和详情

    git remote -v 查看分支对应的远程路径

    git diff --staged 查看

    git clone url 从url指定的仓库位置复制内容到本地

    git pull 从远程仓库拉取最新代码并合并

     git branch -d test_branch

    git push origin --delete test_branch

    git reflog 查看历史操作日志

    git fsck 列出所有add过的文件, 通过git show 找回add过,被误删除的文件。

    删除分支:

    git branch -d branchToDel       删除本地分支,前提是先checkout到其他分支,否则不允许删除

    git push origin --delete branchToDel   删除远程分支

  • 相关阅读:
    ListView点击事件
    ListView优化:
    自定义ListView
    ListView简单使用
    mysql中show processlist过滤和杀死线程
    自定义控件
    yum配置中driver-class-name: com.mysql.jdbc.Driver报错
    CSS+HTML
    maven的配置
    Model、ModelMap、ModelAndView的作用及区别
  • 原文地址:https://www.cnblogs.com/liwutao/p/11926266.html
Copyright © 2011-2022 走看看