Skip to content

threfo/git-sync-by-temp-branch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-sync

  • 1、将 targetGit 的 targetBranch内容 全量覆盖到 originGit 的 tempBranch ,commit 一次

  • 2、将 originGit 的 fromBranch 内容 合并到 originGit 的 tempBranch

  • 3、originGit 的 tempBranch 全量覆盖到 targetGit 的 targetBranch, 且 push tempBranch 本次操作

import run from 'git-sync-to-other-git-by-temp'

run({
  originGit: '[email protected]:threfo/git-sync-by-temp-branch.git',
  targetGit: '[email protected]:threfo/git-sync-by-temp-branch.git',
  fromBranch: 'test',
  targetBranch: 'main',
  syncPathName: 'sync',
  tempBranch: 'temp',
})

About

将某个git仓库某个分支的代码同步到另一个仓库的某个分支

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%