zoukankan      html  css  js  c++  java
  • [label][git-commands] Several Git Commands

    The process of Git commands Operation

    1. git commit -m 'fist post'

    Windows PowerShell
    Copyright (C) 2009 Microsoft Corporation. All rights reserved.

    C:Usersjames> cd f:/
    F:> cd kamakawiwo
    F:kamakawiwo> dir
    F:kamakawiwo> git init
    Initialized empty Git repository in F:/kamakawiwo/.git/
    F:kamakawiwo [master]> dir
    F:kamakawiwo [master]> dir
    F:kamakawiwo [master]> git checkout --orphan gh-pages
    Switched to a new branch 'gh-pages'
    F:kamakawiwo [gh-pages]> git add .
    F:kamakawiwo [gh-pages +4 ~0 -0]> dir


        Directory: F:kamakawiwo


    Mode                LastWriteTime     Length Name
    ----                -------------     ------ ----
    d----        11/11/2014   7:26 PM            _layouts
    d----        11/12/2014   3:02 PM            _posts
    -a---        11/13/2014  10:38 AM        274 index.html
    -a---        11/13/2014  10:35 AM         20 _config.yml

    F:kamakawiwo [gh-pages +2 ~0 -0 !]> mkdir _posts


        Directory: F:kamakawiwo


    Mode                LastWriteTime     Length Name
    ----                -------------     ------ ----
    d----        11/13/2014  11:48 AM            _posts


    F:kamakawiwo [gh-pages +2 ~0 -0 !]> dir


        Directory: F:kamakawiwo


    Mode                LastWriteTime     Length Name
    ----                -------------     ------ ----
    d----        11/13/2014  11:46 AM            _layouts
    d----        11/13/2014  11:48 AM            _posts
    -a---        11/13/2014  11:41 AM         20 _config.yml


    F:kamakawiwo [gh-pages +2 ~0 -0 !]> git add .
    F:kamakawiwo [gh-pages +4 ~0 -0]> git commit -m "first post"
    [gh-pages (root-commit) 06fe5bd] first post
     4 files changed, 38 insertions(+)
     create mode 100644 _config.yml
     create mode 100644 _layouts/default.html
     create mode 100644 _posts/2014-11-11-hello-world.html
     create mode 100644 index.html
    F:kamakawiwo [gh-pages]> git remote add origin https://github.com/smelike/kamak
    awiwo.git
    F:kamakawiwo [gh-pages]> git push origin gh-pages
    Counting objects: 8, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (6/6), done.
    Writing objects: 100% (8/8), 897 bytes | 0 bytes/s, done.
    Total 8 (delta 0), reused 0 (delta 0)
    To https://github.com/smelike/kamakawiwo.git
     * [new branch]      gh-pages -> gh-pages
  • 相关阅读:
    Mysql权限控制
    Linux查看端口
    linus 下redis守护进程启动
    pymongo创建索引
    mongo批量操作存在更新否则插入
    梯度下降推导过程资料整理
    [转]mitmproxy套件使用攻略及定制化开发
    终极利器!利用appium和mitmproxy登录获取cookies
    how-to-pass-a-class-variable-to-a-decorator-inside-class-definition
    python进阶之魔法函数
  • 原文地址:https://www.cnblogs.com/shuman/p/4110293.html
Copyright © 2011-2022 走看看