git-code

command module
v0.0.0-...-bb71e9f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

git-code

Simple cli tool to assist in searching and cloning Organizational repositories. This quick tool simply fills a need to be able to quickly search and clone company repositories. Making it so I don't have to leave the shell...

Setup

Currently the only authentication method being used is a Git Personal Access token. An access token can be created via Settings / Developer Settings / Personal access tokens.

Save the token in ~/.gittoken and chmod the file 0600.

If you don't want to continually provide --organization "orgname" on the command line create a ~/.git-code.yaml file with the line:

organization: orgname

Search / List Repositories

The following will show any repositories within the Organization that contains the name "reponame". The "show" command returns data in JSON.

git-code show "reponame"

Clone Repositories

The "clone" command will match repositories that contain the "reponame". If there are multiple repositories that match, the names will be displayed and you will be asked to make the search more specific.

# This will clone the repository into a directory name that matches the repository
# name
git-code clone "reponame"
# This will clone the repository into a directory named "JIRA-2112"
git-code clone "reponame" --directory "JIRA-2112"

Documentation

Overview

Copyright © 2020 Christopher J. Maahs <cmaahs@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL