Skip to content

This powershell command let you clone a user's all public repositories on github in one command.

License

Notifications You must be signed in to change notification settings

PienTian/cloneAllRepositories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

cloneAllRepositories (command: clone-all)

This powershell module let you clone a user's all public repositories on github in one command. Command is defined on powershell module file (.psm1)

コマンド一つでそのユーザーのgithub上のレポジトリをすべてクローンするコマンドモデュールを作りました。 コマンドはpowershellモデュールファイル(.psm1)上に定義されています。

Set up to use the command

Put 'cloneAll' directory under 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules' directory. Make sure you have appropriate powershell execution policy. Here is an example.

'C:\Windows\System32\WindowsPowerShell\v1.0\Modules'下に'cloneAll'ディレクトリを置いてください。適当なpowershell実行ポリシーであることを確認してください。

  • eg) Set-ExecutionPolicy remoteSigned (run as admin is required)

you may need to unblock program.

プログラムの実行を許可しなければいけないかもしれません。

  • eg) Unblock-File cloneAll.psm1 (also you may need to Unblock-File cloneAll.psd1)

restart powershell (close and open new terminal emulator)

powershellを再起動してください。 (ターミナルエミュレータを閉じて新しく開く)

ALL SET :)

if still you can't run, please try loosing execution policy.

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted (not recommended) or copy paste to new psm1 and psd1 file.

それでも動かなかった場合は、上記のコマンドでポリシーを緩めるか、.psm1と.psd1ファイルを新しく作成して内容をコピペしてください。

Usage

Clone-All -u <UserName> or shortly, clall <UserName>

Just use like when you clone a repository.

To illustrate, you can clone all my public repositories by following command

普段クローンするときのように使ってください。

例えば、以下のコマンドで私のすべての公開レポジトリをクローン出来ます。

Clone-All PienTian

  • This program only works against public repository on github.com. you can't use this command to other git services or private repos.

  • このコマンドはgithub上の公開レポジトリにのみ使えます。ほかのサービスや非公開レポジトリには使えません。

About

This powershell command let you clone a user's all public repositories on github in one command.

Resources

License

Stars

Watchers

Forks

Packages

No packages published