zoukankan      html  css  js  c++  java
  • Git学习

    git branch -a
    git pull
    git checkout branch
    克隆仓库的命令格式是 git clone [url]
    检查当前文件状态 要查看哪些文件处于什么状态,可以用 git status 命令。
    每次准备提交前,先用 git status 看下,是不是都已暂存起来了, 然后再运行提交命令 git commit

    分支创建
    Git 是怎么创建新分支的呢? 很简单,它只是为你创建了一个可以移动的新的指针。 比如,创建一个 testing 分支, 你需要使用 git branch 命令:
    $ git branch testing

    分支切换
    要切换到一个已存在的分支,你需要使用 git checkout 命令。 我们现在切换到新创建的 testing 分支去:
    $ git checkout testing

    想要新建一个分支并同时切换到那个分支上,你可以运行一个带有 -b 参数的 git checkout 命令:
    $ git checkout -b iss53
    Switched to a new branch "iss53"
    它是下面两条命令的简写:
    $ git branch iss53
    $ git checkout iss53

    git branch 命令不只是可以创建与删除分支。 如果不加任何参数运行它,会得到当前所有分支的一个列表

    GIT学习:

    https://git-scm.com/book/zh/v2

  • 相关阅读:
    C++的命名空间的使用
    QT编译和运行ROS功能包
    Ubuntu安装Chromium浏览器
    回文字符串(LCS变形)
    友好城市(LIS+结构体排序)
    免费馅饼
    C++ STL之set学习笔记
    Coloring Contention
    Charles in Charge
    最短路之Floyd,Dijkstra(朴素+队列优化)
  • 原文地址:https://www.cnblogs.com/mybatis/p/9358809.html
Copyright © 2011-2022 走看看