• [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
  • 相关阅读:
    matplotlib formatters
    matplotlib locators
    mysql> 12 simple but staple commands
    mysql--> find your databases' local position
    ubuntu16.04安装caffe常见问题及其解决方案
    gitlab使用说明
    vim配置摘要
    shell 提示符个性化设置
    python拼接参数不确定的SQL时防注入问题--条件语句最后拼入
    python_opencv ——图片预处里(二)
  • 原文地址:https://www.cnblogs.com/shuman/p/4110293.html
Copyright © 2020-2023  润新知