muhasturk / gitim Goto Github PK
View Code? Open in Web Editor NEWClone all of your Github repositories, just single command from your terminal.
License: MIT License
Clone all of your Github repositories, just single command from your terminal.
License: MIT License
Is it possible to use this to clone all private repos from a user on a private GitHub Enterprise server? I am trying to clone all of my own repos from my GitHub school account (not this account) on my schools own GitHub Enterprise server.
Looking at your readme... ran the following commands
git clone https://github.com/muhasturk/gitim
cd gitim
python -m gitim -u
and got the error:
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/rhodecode/downloads/gitim/gitim.py", line 12, in <module>
from github import Github
ImportError: No module named github
Not sure if my python install install is broken - unable to "pip install github".
Would be very helpful if you were to update your readme with details.
PS: Is there a python version dependency? would 2.7 work?
Thanks
I need for example download all reps from some user
for example
https://github.com/cran
or
https://github.com/llSourcell?tab=repositories
thnaks
I get this e-mail warning when using gitim:
On June 21st, 2020 at 14:55 (UTC) you used a password to access an endpoint through the GitHub API using PyGithub/Python:
https://api.github.com/user
Basic authentication using a password to the API is deprecated and will soon no longer work. Visit https://developer.github.com/changes/2020-02-14-deprecating-password-auth/ for more information around suggested workarounds and removal dates.
Thanks,
The GitHub Team
Hello.
I'm an owner of organization (Admin access to all organization repos), but when I try to use your tool with command;
python -m gitim -u "mysername" -p "mypassword" -o "organization name"
I get all public repos just fine, but after that I'm getting prompted username/password for each private repo.
401 {"message": "Must specify two-factor authentication OTP code.", "documentation_url": "https://docs.github.com/v3/auth#working-with-two-factor-authentication"}
When cloning a repo from another user where you are a collaborator, there seems to be an inconsistent behaviour, probably depending on what CLI arguments you give (-u, -d, -o).
Sometimes it is cloned to
directory/anotheruser/repo/
but other times to:
directory/repo/
Also, sometimes I get this error message where I can not update the other person's repo any more:
Cloning "anotheruser/repo"
fatal: destination path 'directory/anotheruser/repo' already exists and is not an empty directory.
I have made a PR to solve this:
#14
Thanks for this nice tool!
My environment
When I try to clone all my repositories without "--nopull" I get this stack trace.
This happens with the first already existing repository folder.
Traceback (most recent call last):
File "C:\Users\deruli\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\deruli\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\deruli\AppData\Local\Programs\Python\Python36\lib\site-packages\gitim-2.0.0-py3.6.egg\gitim.py", line 1
08, in <module>
File "C:\Users\deruli\AppData\Local\Programs\Python\Python36\lib\site-packages\gitim-2.0.0-py3.6.egg\gitim.py", line 1
00, in clone_main
File "C:\Users\deruli\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 267, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\deruli\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:\Users\deruli\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 997, in _execute_child
startupinfo)
TypeError: environment can only contain strings
This seems to be an encoding issue?
File "/Users/dabitdev/Projects/gitim/gitim.py", line 12, in
from github import Github
when I try using option -u -p I am still prompted for username and password
When I tried to run
python -m gitim -u
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users//www/gitim/gitim.py", line 12, in
from github import Github
ModuleNotFoundError: No module named 'github'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.