Coder Social home page Coder Social logo

code's Introduction

Git演示项目

2018年6月22日

  • git init

  • git add <filename1> <filename2>

  • git add .

  • git checkout -- <filename>

  • git checkout -- .

  • git status

  • git config --global user.name <username>

  • git config --global user.email <email>

  • git commit -m 'reason'

  • git log

  • git reset --hard HEAD^

  • git reset --hard <version>

  • git remote add origin <url>

  • git push -u origin <branch>

  • git pull

  1. 克隆项目到本地 git clone <url>

  2. 创建并切换到自己的分支 git branch jack git checkout jackgit checkout -b jack

  3. 在自己的分支上做开发然后实施版本控制 git add . git commit -m 'reason'

  4. 将自己的工作合并到master上  git checkout master git merge jack 如果不希望使用fast-forward方式合并(git log中没有分支记录) git merge --no-ff jack -m 'reason'

  5. 如果想通过图形化的方式查看到分支信息 git log --graph --pretty=oneline --abbrev-commit

code's People

Contributors

jackfrued avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

code's Issues

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.