Giter Site home page Giter Site logo

git's Introduction

git

查看状态

git status 检查已经修改的文件,或者在oh-my-zsh下的小叉叉

查看日志

git log 每一次修改都有相应的记录被记录在案

常用添加

  1. git init 初始化,让文件变为已修改状态

  2. git add test.md 添加到已暂存状态

  3. git commit -m "creat a file " 每一次提交必须要有个注

撤回

对于 git add: 使用下面的命令,可以从暂存去中删除 git rm -- cached test.md

对于 git commit: 使用下面的命令,可以将已经提交的状态中撤出 git checkout --text.md

git rest HEAD test.md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.