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...

  • 相关阅读:
    福大软工 · 第十次作业
    Summary #ToBeContinue......
    福大软工 · 第十二次作业
    Beta 冲刺(7/7)
    Beta 冲刺(6/7)
    Beta 冲刺(5/7)
    Beta 冲刺(4/7)
    Beta 冲刺(3/7)
    Beta 冲刺(2/7)
    福大软工 · 第十次作业
  • 原文地址:https://www.cnblogs.com/vickey-wu/p/7134536.html
Copyright © 2011-2022 走看看