zoukankan      html  css  js  c++  java
  • Git使用入门笔记

    1、 创建并初始化一个 代码仓库 (repository)

    $ git init

    2、查看当前状态

    $ git status

    3、 将修改后的文件推入缓冲区

    $ git add <filename>

    $ git commit -m "some marks"

    4、将远程代码库同步到本地

    $ git clone <url>

    5、将本地代码推送到远程仓库

    $ git push origin master

    6、创建分支

    $ git branch <branch_name>

    7、进入分支

    $ git checkout <branch_name>

    8、查看分支

    $ git branch

    9、删除分支

    $ git branch -d <branch_name>

    10、合并分支

    $ git merge  <branch_name_to_merge>

    pp
  • 相关阅读:
    Hibernate优缺点
    Struts优缺点
    Problem M
    Problem K
    Problem K
    Problem Q
    Problem Q
    Problem F
    Problem F
    哈夫曼树
  • 原文地址:https://www.cnblogs.com/wangxiaoyong/p/8857003.html
Copyright © 2011-2022 走看看