Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arshadkazmi42/flip-remote
:octocat: Flip git remote config from https to ssh and reverse flip it
https://github.com/arshadkazmi42/flip-remote
config git git-config hacktoberfest https remote ssh ssh-keygen
Last synced: about 2 months ago
JSON representation
:octocat: Flip git remote config from https to ssh and reverse flip it
- Host: GitHub
- URL: https://github.com/arshadkazmi42/flip-remote
- Owner: arshadkazmi42
- License: mit
- Created: 2019-01-17T17:33:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-05T09:14:50.000Z (about 2 years ago)
- Last Synced: 2024-10-04T17:55:48.269Z (3 months ago)
- Topics: config, git, git-config, hacktoberfest, https, remote, ssh, ssh-keygen
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 8
- Watchers: 2
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# flip-remote :octocat:
[![Build](https://github.com/arshadkazmi42/flip-remote/actions/workflows/nodejs.yml/badge.svg)](https://github.com/arshadkazmi42/flip-remote/actions/workflows/nodejs.yml)
[![NPM Version](https://img.shields.io/npm/v/flip-remote.svg)](https://www.npmjs.com/package/flip-remote)
[![NPM Downloads](https://img.shields.io/npm/dt/flip-remote.svg)](https://www.npmjs.com/package/flip-remote)
[![Github Repo Size](https://img.shields.io/github/repo-size/arshadkazmi42/flip-remote.svg)](https://github.com/arshadkazmi42/flip-remote)
[![LICENSE](https://img.shields.io/npm/l/flip-remote.svg)](https://github.com/arshadkazmi42/flip-remote/blob/master/LICENSE)
[![Contributors](https://img.shields.io/github/contributors/arshadkazmi42/flip-remote.svg)](https://github.com/arshadkazmi42/flip-remote/graphs/contributors)
[![Commit](https://img.shields.io/github/last-commit/arshadkazmi42/flip-remote.svg)](https://github.com/arshadkazmi42/flip-remote/commits/master)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 :star: if you like our work :heart:
## 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
```javascript
$ 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](https://github.com/arshadkazmi42/flip-remote/issues/new), fixing [open issues](https://github.com/arshadkazmi42/flip-remote/issues) or by implementing a new feature.
Read our contributing [guide](CONTRIBUTING.md) on getting started with contribution