Coder Social home page Coder Social logo

training-plan's Introduction

training-plan

电子科技大学网络与分布式系统实验室新生训练计划

training-plan's People

Contributors

yike21 avatar ihnfsax avatar chenningjie1218 avatar zhusl-2021 avatar qianji-wz avatar tom-jerr avatar wangao-0 avatar whyeinstein avatar

training-plan's Issues

How to submit a PR?

提交PR需要注意的事项

基本操作流程

  1. https://github.com/uestc-ndssl/training-plan fork 到你自己的 github 中

  2. 创建本地仓库:

    git clone https://github.com/ **YourGithubAccount** /training-plan
    cd training-plan
    ls
    
    git config user.name "???"
    git config user.email "???"
    
    git remote -v
    git remote add upstream https://github.com/uestc-ndssl/training-plan
    
  3. 创建分支:

    git checkout -b **YourBranchName**
    
  4. https://github.com/uestc-ndssl/training-plan 获取最新更新,变基

    git fetch upstream
    git rebase upstream/master
    
  5. 修改代码,之后提交代码:

    git status
    git add .
    git commit -s -m "feat: xxx"
    git push --set-upstream origin **YourBranchName**
    
  6. 请求 review 代码的方法:在 github 网页上发起一个 PR(pull request)即可。

注意事项

提交前

  1. 建议本地仓库的master分支保持对上游的同步。

    # 在master分支下
    git pull
    
  2. 建议基于最新的本地master分支创建新的分支

    # 在master分支下
    git pull
    git checkout -b **YourBranchName**
    
  3. 提示,可基于最新的 master 进行 rebase

    # 在新创建的分支下,在你的最终提交后需要 rebase 最新的代码,若有冲突,需要处理冲突
    git rebase master
    
  4. 要求一个 PR 对应一个 commit,同一分支下多次提交可采用 --amend 选项,或者在多次小的提交后进行 squash

    # 第二次提交时,采用追加方式
    git commit -s --amend 
    

提交后

  1. 发起 PR 时,注意仔细填写 PR 信息,核对修改文件。
  2. 提交后 @ userID 进行 review。

参考

GIT

史上最浅显易懂的 Git 教程! 廖雪峰

Pro Git(中文版)

撸袖子 动手学 Git 专治菜鸟

Git 远程操作详解 阮一峰

fork 后如何跟上源 repo 的变化

Markdown

Markdown 入门指南

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.