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

  • 相关阅读:
    Spring Security11、登录用户管理
    Spring Security10、账号登录并发控制
    win10下怎么打开notepad++多个实例
    gnu make
    es学习记录
    upj
    JConsole连接远程Java进程
    常用的几种成本核算方法
    SQL SERVER 统计字符串中某字符出现的次数
    centos误删除系统自带的python解决方法
  • 原文地址:https://www.cnblogs.com/vickey-wu/p/7134536.html
Copyright © 2011-2022 走看看