New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →
Socket
Sign inDemoInstall
Socket

git-syncer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-syncer

A helper command-cli to sync with sub repos

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

repo 信息格式

{
    hash: String // sub repo 的 sha1 hash 
    branch: String // 对应的开发分支
    path: String // 存储路径
    remote: String // 远端 repo url
}

sub repo check逻辑

  • 每天至少 check 一次 branch 进度
  • 每次 check 是否有未提交内容
  • 每次 check masterHash 与 subRepoHash

思考

  • 主 repo 记录子 repo 状态
    • auto sync
      • clean status
      • @command git status -s
      • @command git rev-parse HEAD
    • manual sync
    • manual revert

FAQs

Package last updated on 12 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc