GithubHelp home page GithubHelp logo

zhiqingli / sdk_refresh Goto Github PK

View Code? Open in Web Editor NEW
21.0 1.0 21.0 279.7 MB

SDK文件同步

C 76.21% Makefile 1.46% Assembly 0.60% C++ 4.03% Shell 0.08% Batchfile 0.01% PLSQL 0.19% Objective-C 1.78% HTML 14.38% Logos 0.46% Perl 0.01% PHP 0.01% Scala 0.79%

sdk_refresh's Introduction

1.获取远程代码到本地的方法。 $ git remote -v
//查询当前远程的版本 $ git fetch origin master [示例1:获取远端的origin/master分支] $ git fetch origin dev [示例2:获取远端的origin/dev分支] $ git log -p master..origin/master [示例1:查看本地master与远端origin/master的版本差异] $ git log -p dev..origin/dev [示例2:查看本地dev与远端origin/dev的版本差异] $ git merge origin/master [示例1:合并远端分支origin/master到当前分支] $ git merge origin/dev [示例2:合并远端分支origin/dev到当前分支]

2.如果我们想让服务器代码完全替换和覆盖我们本地的代码改动,那么只需要执行 $ git fetch origin master $ git reset --hard origin/master $ git pull 即可

3.提交本地修改到远程仓库 $ git add . $ git commit -m "提交注释" $ git push -u origin master

sdk_refresh's People

Contributors

zhiqingli avatar

Stargazers

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