Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitstrap-cli

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

gitstrap-cli

A cli tool that allows you to easily sync with your upstream git repository

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Globally install GitStrap CLI

npm install -g gitstrap-cli

Clone and Setup Upstream and Origin

gitstrap init <gitstrap-repo> <my-repo> <folder-name>

This command works as follows:

  • Clones gitstrap-repo(origin) from GitStrap on user local system with same git-branch as that of origin, say master.
  • Sets the upstream(user remote) and origin on user local system respectively.
  • Push to user remote repo.
  • folder-name is optional argument of gitstrap init command.
    • Without folder-name: Clones origin into your current location of directory.

    • With folder-name : Clones origin into the specified location of your directory.

Sync Update from GitStrap Repo

gitstrap sync <upstream-branch>

gitstrap sync command helps to automatedly sync your repo with that of gitstrap repo.

This command works as follows:

  • Pulls from origin i.e., master (from default git-branch)
  • Merges into user local repo i.e., master (same git-branch as that during clone)
  • upstream-branch is optional argument of gitstrap sync command.
    • This lets you choose between your git-branch for sync.
    • Example: If you want to sync origin's master with your repo's development, include upstream-branch with gitstrap sync command.

Keywords

FAQs

Package last updated on 25 Jul 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