GithubHelp home page GithubHelp logo

learngit's Introduction

#about readm.md use makrdown lable to description your project

###常用git命令手册 选择一个工作目录,然后初始化版本库 cd ~
mkdir learngit
cd learngit
git init

###关联远程仓库 git remote add origin git:github/xincun/learngit.git

###下载远程仓库到本地版本库 git pull

###提交到远程仓库 git push origin master

###How do I commit all deleted files in Git? git add -u
This tells git to automatically stage tracked files -- including deleting the previously tracked files.

###仅在暂存区删除,保留文件在当前目录,不再跟踪 git rm –cached readme.txt

###重命名文件 git mv reademe.txt readme

###修改最后一次提交注释的,利用–amend参数 git commit --amend

###假设你已经使用git add .,将修改过的文件a、b加到暂存区现在你只想提交a文件,不想提交b文件,应该这样 git reset HEAD b

取消对文件的修改
git checkout –- readme.txt

learngit's People

Contributors

xincun avatar

Watchers

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