zoukankan      html  css  js  c++  java
  • note for git

    1、download

    https://git-for-windows.github.io/

    2、command

    add file to git: git add filename & git commit -m "explaination about the changes of the file" you must add & commit file so that changes of the file will take effect

    get file status: git status

    compare different: git diff filename

    check log: git log / git log --pretty=oneline,short,medium,full,fuller,email

    check all verison id: git reflog

    version checkout: git checkout -- filename (take effect only before you add);

            git reset HEAD filename (take effect before you commit -m); 

            git reset --hard HEAD~100/git reset --hard version_id (take effect before you summit the local version to remote version library

    remove file: rm filename; T:git rm filename & git commit filename;F:git checkout filename

    3、remote library

    push:git remote add origin https:github.com/Vickey-Wu/create_website.git (git remote add + remote library name + repository address)

        git push -u origin master (if first time to push need -u ,later don't have to)(if raise error [rejected] then use: git push -f)

    clone from remote: git clone https://github.com/Vickey-Wu/get_remote.git

    to be continue...

  • 相关阅读:
    HTML元素解释
    Java命名规范
    HDU 1058 Humble Numbers(DP,数)
    HDU 2845 Beans(DP,最大不连续和)
    HDU 2830 Matrix Swapping II (DP,最大全1矩阵)
    HDU 2870 Largest Submatrix(DP)
    HDU 1421 搬寝室(DP)
    HDU 2844 Coins (组合背包)
    HDU 2577 How to Type(模拟)
    HDU 2159 FATE(二维完全背包)
  • 原文地址:https://www.cnblogs.com/vickey-wu/p/7134536.html
Copyright © 2011-2022 走看看