zoukankan      html  css  js  c++  java
  • 超级Git笔记

    笔记总结了git常用的命令,以及对每条命令的解释。部分命令增添了一些例子帮助理解。

    完整笔记可在微信公众号阅读:超级Git笔记

    目录:

    • Git vs Github

    • How does git work? (a general introduction)

    • git init (create a new repository)

    • git clone (copy existing repositories from somewhere else to your local computer)

    • git status (check the status of a repository)

    • git log (displays information about the existing commits)

    • git log --oneline

    • git log --stat

    • git log -p

    • git log [--oneline/--stat/-p] SHA (display a specific commit's details)

    • git show (displays information about the given commit)

    • git add (add files from the working directory to the staging index)

    • git rm --cached (remove a file from the Staging index)

    • git commit (take files from the staging index and save them in the repository)

    • git commit -m

    • git commit --amend (alter the most-recent commit)

    • git revert (reverse the given commit)

    • Relative Commit References

    • git reset (erase commits)

    • git diff (displays the difference between two versions of a file)

    • git ignore

    • git tag (add a tag to a specific commit)

    • git tag (verify tag)

    • git tag -d (delete a tag)

    • git branch (develop different features of your project in parallel)

    • git checkout (switch between different branches and tags)

    • git checkout -b (create and switch branch in one command)

    • git branch -d

    • git log --oneline --decorate --graph --all (see all branches at once)

    • git merge (combines changes on different branches)

    • Handle Merge Conflicting

     

  • 相关阅读:
    2014百度之星资格赛1001
    ZOJ1913 Euclid's Game (第一道简单的博弈题)
    博弈论(转)
    字典序全排列
    windows下用虚拟机安装ubuntu
    Windows多线程多任务设计初步(转)
    为什么我如此热爱这样一个比赛(转自vici)
    BFS/DFS算法介绍与实现(转)
    美丽的茧
    求N个数的最大公约数和最小公倍数(转)
  • 原文地址:https://www.cnblogs.com/createMoMo/p/15059538.html
Copyright © 2011-2022 走看看