我如何克隆與名myproject
回購,服務器目錄被命名爲使用智能https
像584ffceed.git
一個唯一的代碼,以及我如何設置要求輸入用戶名和密碼,給權利權限推或拉?克隆一個Git倉庫與另一名
回答
克隆到myproject
只是做git clone .../584ffceed.git myproject
。
關於你的其他問題,你不清楚你在問什麼。請重新說明這個問題以說清楚。
我如何讓git爲我的http://site.tk請求用戶名和密碼並進行身份驗證,然後讓它克隆或推送 –
我可以使用php ? –
你說你使用智能HTTP像這裏desribed:https://git-scm.com/book/be/v2/Git-on-the-Server-Smart-HTTP?本頁面還介紹如何添加身份驗證。 – Vampire
克隆以這種方式回購...
git clone clone_url.git project_name
人混帳克隆
git clone [--template=<template_directory>]
[-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
[--dissociate] [--separate-git-dir <git dir>]
[--depth <depth>] [--[no-]single-branch]
[--recursive | --recurse-submodules] [--[no-]shallow-submodules]
[--jobs <n>] [--] <repository> [<directory>]
<directory>
The name of a new directory to clone into.
The "humanish" part of the source repository is used if no directory is explicitly given (repo for /path/to/repo.git and foo for
host.xz:foo/.git).
Cloning into an existing directory is only allowed if the directory is empty.
這是庫URI後
我如何讓git爲我的http://site.tk請求用戶名和密碼並進行身份驗證,然後讓它克隆或推送,即只允許特定用戶推送到特定的回購站 –
就像github –
並且在nginx中執行 –
- 1. 而克隆一個Git倉庫
- 2. 克隆git倉庫
- 3. 合併兩個git倉庫,一個一個git-CVS克隆,一個GIT中 - svn的克隆
- 4. 克隆git倉庫的.git目錄
- 5. 創建一個包含另一個git倉庫的git倉庫
- 6. 克隆一個CVS倉庫客戶端
- 7. 用SSH和libgit2sharp克隆一個git倉庫
- 8. 如何選擇克隆一個Git倉庫
- 9. 如何在git中籤出一個克隆倉庫
- 10. 如何「連接」一個git倉庫而不克隆它?
- 11. Python的方式克隆git倉庫
- 12. 如何用GitLab克隆git倉庫
- 13. 無法從github克隆git倉庫
- 14. 如何從VM中克隆Git倉庫?
- 15. SSH錯誤克隆Git倉庫
- 16. 使團隊克隆git倉庫
- 17. 使用SSH克隆git倉庫
- 18. 將一個git倉庫作爲分支導入另一個倉庫倉庫
- 19. 如何鏡像和同步一個git倉庫到另一個倉庫倉庫?
- 20. Mercurial - 克隆克隆另一個回購
- 21. 將克隆的git倉庫轉換成分叉的倉庫
- 22. 是否有可能在另一個git倉庫中擁有一個git倉庫
- 23. 用ssh用用戶名和密碼克隆git倉庫
- 24. 如何合併svn倉庫與git克隆倉庫(通過github從SVN導入)
- 25. 拉從Git的一個文件,而無需克隆整個倉庫
- 26. git的移動倉庫到另一個倉庫作爲目錄
- 27. 用另一個倉庫管理git倉庫
- 28. 克隆一個空的*裸* git倉庫最直接的方法是什麼?
- 29. Git克隆到另一個現有的Git回購
- 30. 移動一個倉庫分支到另一個遠程倉庫git
'git的clone'直接放置在參數 - > HTTPS ://git-scm.com/docs/git-clone – miqdadamirali