Coder Social home page Coder Social logo

arshadkazmi42 / flip-remote Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 13.0 120 KB

:octocat: Flip git remote config from https to ssh and reverse flip it

License: MIT License

JavaScript 100.00%
git config git-config remote https ssh ssh-keygen hacktoberfest

flip-remote's Introduction

flip-remote :octocat:

Build NPM Version NPM Downloads Github Repo Size LICENSE Contributors Commit

This cli tool switches the http or https remote url to ssh url and vice versa inside git config.

It loads the git config from .git/config and checks what type of remote url its using (http, https or ssh).

If its using, http or https it will switch it to ssh and if its using ssh it will change it to https.

Give us a ⭐ if you like our work ❤️

Install

$ npm i -g flip-remote

This should be installed globally

Usage

  • Navigate to a root directory of any github repository in you local machine and run the below command
$ flipremote

// Output
// ✔ Github Remote Flipped

Contributing

We are constantly working on improving this library and we need all the help we can get.

You can contribute to this project by giving suggestions, fixing open issues or by implementing a new feature.

Read our contributing guide on getting started with contribution

flip-remote's People

Contributors

arshadkazmi42 avatar dependabot[bot] avatar imanishbarnwal avatar kozlovvski avatar mbermudo avatar michaelymo avatar neilr1 avatar pwnb0y avatar raimeenakshi avatar sugar-king avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flip-remote's Issues

Validate for http url

At present it only searches for https url and fails for http url.
It should work for both http and https

Pull request template

Add PULL_REQUEST_TEMPLATE.md file in root directory with below content in it

Fixes #issuenumber
-

Write tests

At present there are no tests added for this. Let's add some tests to validate PR's

fix vulnerability

  • Delete package-lock.json
  • Run npm install
  • Commit the updated package-lock.json
  • Create pull request

Add badges to readme

  1. Install npm badger npm install npm-badger -g
  2. Clone this repository git clone https://github.com/arshadkazmi42/flip-remote
  3. Go to root directory cd flip-remote
  4. Run npm badger npm-badger
  5. Commit README.md file
  6. Create Pull Request

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.