2013年9月25日 星期三

git 自己建立一個新的 Repository

step1.
到你要存取的資料夾下


git init

這時你就會看到 Git 告訴你說已經在這邊建立好一個新的 Git Repository。


Clone(複製)別人的 Repository



將他複製起來後到你的目錄下輸入 git clone
$ https://github.com/JOHNBASS/Sports-stars.git
如此便會將這個 Git Repository下載到我們的資料夾, git clone 預設會將下載的 git 存成一樣檔名的資料夾,如果你要更改成別的名稱的話只需要在網址後面加上你想要更改的名稱即可,像是:
$ https://github.com/JOHNBASS/Sports-stars.git test1
這樣子下載下來的 Repository 的名稱就會從原本的 Sports-stars 變成 test1 了。

參考資料:http://gogojimmy.net/2012/01/17/how-to-use-git-1-git-basic/

0 意見:

張貼留言