Giter VIP home page Giter VIP logo

git-quick-start's Introduction

git-quick-start

这是一个git的快速入门项目,使用一些gif图片来播放一些基础的git命令使用方法。

生成ssh-key

这里是使用ssh-keygen的默认配置生成了秘钥对,没有给私钥加密码,非常的简单,也很实用,注意私钥(~/.ssh/id_rsa)请谨慎保存,泄露了就如同泄露了密码一样 生成ssh-key

Clone and push

没什么好说的,就是clone下来,编辑一些文件,提交然后push。 Clone adn push

创建和切换分支

创建分支git branch new_branch_name 切换分支 git checkout target_branch_name ,哦忘了,删除分支是git branch -D target_branch_name 创建和切换分支

推送远程分支

推送远程分支很简单,git push origin local_branch_name:remote_branch_name 推送远程分支

merge

merge用于合并分支,git merge source_branch merge

tag

可使用git子命令tag来给版本打标签做标记,git tag xxx tag

推荐另外一个还不错的入门资料 git guide

git-quick-start's People

Contributors

alfredsang avatar

Watchers

 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.