Coder Social home page Coder Social logo

-git-merge-'s Introduction

安装

  • npm install git-merge -g

使用

  • gm dev 当前分支合并到dev分支
  • gm develop 当前分支合并到develop分支
  • gm online 当前分支合并到online分支
  • gm beta 当前分支合并到beta分支
  • gm wapa 当前分支合并到wapa分支
  • gm test 当前分支合并到wapa分支
  • gm master 当前分支合并到master分支
  • gm -b branch 当前分支合并到branch分支
  • gm pull 保存并更新 gm pull -b branch 同步branch分支代码到本地
  • gm push 保存并上传
  • gm pp 保存同步拉新后保存上传 == gm pull && gm push
  • gm branch 当前分支查看
  • gm dev -a 过程正常一直进行
  • gm dev -m 'xxx' message信息多少
  • gm -v

gm dev -m 'xx' 举例执行过程

  • git add . && git commit -m 'xx' && git pull origin curbranch
  • git add . && git commit -m 'xx' && git push origin curbranch
  • git checkout dev
  • git add . && git commit -m 'xx' && git pull origin dev
  • git add . && git commit -m 'xx' && git pull origin curbranch
  • git add . && git commit -m 'xx' && git push origin dev
  • git checkout curbranch
  • 过程中出现异常会提示解决 解决后流程可以点继续

gm pp -m 'xx' 举例执行

  • git add . && git commit -m 'xx' && git pull origin curbranch
  • git add . && git commit -m 'xx' && git push origin curbranch
  • 过程中出现异常会提示解决 解决后流程可以点继续

解决问题

  • 自动流程解决合并本地合并分支代码的问题,避免手动执行过程中的遗漏出现问题操作麻烦 ,分支切换执行出现混乱

-git-merge-'s People

Stargazers

 avatar

Watchers

 avatar  avatar

-git-merge-'s Issues

Potential command injection vulnerability in git-merge

Hi,

Thanks for developing this great npm package! We find a potential command injection vulnerability from it.
The bug is introduced because package-exported method gitpush fails to sanitize message parameter and let it flow into a sensitive command execution API.

Here is the proof of concept.

const git_merge = require("git-merge");
git_merge.gitPush({branch: "1", message:"'||touch /tmp/git_merge_rce;'"})

Please consider fix it. thanks!

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.