Giter Club home page Giter Club logo

learngit's Introduction

Git is a distributed version control system.
Git is a free software distributed under the GPL.
Git has a mutable index called stage.
Creating a new branch is quick and simple.
Try use --no-ff command.

# git add 提交前需将git cd至文档所在目录下

# 为什么Git添加文件需要add,commit一共两步呢?
# 因为commit可以一次提交很多文件,所以你可以多次add不同的文件,
# 比如:
# $ git add file1.txt
# $ git add file2.txt file3.txt
# $ git commit -m "add 3 files."

# $ git add 文件添加,相当于将文件移至.git文件夹内的暂存区
# $ git commit 提交更改,即把暂存区所有内容提交至当前分支

# vi 模式
# 输入vi 进入vi的命令行模式(command mode),
# 稍等片刻后按字母【i】键切换至插入模式(Insert mode)
# 退出:先按【Esc】退至命令行模式,
    再按【Shift】+【;】即【:】键进入(Last line mode)(必须英文输入法下)
    最后输入【q】退出(输入【w】为保存)

# 分支管理,见Dev
# rm test.txt rm命令删除没用的文件 

learngit's People

Contributors

qoften avatar

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.