Git Product home page Git Product logo

git_utility's Introduction

Project to create github repository from the terminal

  • The repository will be created at /home/user/Projects/ directory (Instead of user add name of user directory)

  • The github personal access token is to be obtained from the developer settings in github.com and to be stored in .env file in the home folder in json format.

  • Token to be named 'github-auth-token' or change it in the python code

  • To use command universally make a soft link using ln in /usr/bin/

sudo ln git_util.py /usr/bin/git_util.py
sudo ln create_repo.sh /usr/bin/create_repo

You can also copy and paste the files there

Note

--> If the user is not getting authenticated in the get_user() function after using the personal access token to authenticate add the following to to repr to the AuthenticatedUser class in AuthenticatedUser.py in the locale site file for PyGithub.
path:/home/rahul/.local/lib/python3.8/site-packages/github/AuthenticatedUser.py:
replace 'rahul' with name of your user folder.

class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
    def __repr__(self):
        self._completeIfNotSet(self._login) #Add this line
        return self.get__repr__({"login": self._login.value})

git_utility's People

Contributors

rahulkeluskar avatar

Watchers

James Cloos avatar  avatar

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.