gitHub使用入門和github for windows的安裝教程

來源:互聯網
上載者:User

標籤:百度搜尋   windows   搜尋引擎   用戶端   倉庫   

在看這篇教程之前我想大家也在搜尋怎樣使用gitHub託管自己的項目,在使用gitHub之前我也遇到過各種問題,在網上我也搜尋了很多,但總覺得網上搜尋到的東西很多很雜,有的根本不知道是在表達什麼。在這過程中我也遇到不少坑,經過自己的摸索最後終於安裝成功並發行就緒我的東西了。所以我就想做一篇我自己在使用過程中的一些心得。希望對大家有所協助吧。

首先第一步當然是找到gitHub的官網了,可以直接輸入網址https://github.com/ 或者是在百度搜尋gitHub(ps:個人喜歡用百度搜尋引擎,啥360搜尋的總感覺不順眼)找到如下點擊Sign up註冊一個帳號。

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230123744523-1462461309.png" width="351" height="272" style="margin:0px;padding:0px;border:0px;" />

第二步:有了帳號和密碼之後就可以直接登入了,登入進去之後就點擊Start project建立自己的項目倉庫了

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230124523804-1057369150.png" width="443" height="184" style="margin:0px;padding:0px;border:0px;" />

第三步:填寫自己的倉庫名稱以及勾選一些選項就點擊綠色按鈕建立

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230124858429-1528261771.png" width="372" height="269" style="margin:0px;padding:0px;border:0px;" />

第四步:建立好之後就擁有了自己的倉庫了,例如我的倉庫名為test

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230125320195-1462113911.png" width="476" height="219" style="margin:0px;padding:0px;border:0px;" />

第五步:建立好倉庫之後就是上傳自己的本地項目到倉庫裡面了,上傳本地項目就需要在電腦上安裝gitHub的用戶端github for windows,首先我是在網上找了個github for windows離線安裝包下載,搜尋出有很多可以找個合適的下載

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230130628617-1049695212.png" width="358" height="233" style="margin:0px;padding:0px;border:0px;" />

第六步:下載下來之後解壓直接跟安裝其它軟體一樣一直下一步就可以安裝了。但是需要注意的是如果你的電腦上沒有.net framework 4.5或者更高版本是安裝不了的,這時候你需要自行去下載.net framework安裝,安裝了這個之後如果沒什麼問題就可以正常安裝上github for windows了。

第七步:軟體安裝好之後就輸入剛剛在github註冊了的帳號和密碼就可以登入了。登入上去之後找到左上方的“+”Add就是添加一個你本機存放區路徑,Create就是建立新的一個倉庫,Clone就是複製在瀏覽器上建立的倉庫到本地。點擊clone,就可以看到剛剛在git上建立的倉庫test了,選中它然後點擊下面的Clong text 然後就會讓你選一個你本地的儲存地址

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230131259711-1761160713.png" width="454" height="277" style="margin:0px;padding:0px;border:0px;" />650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230131608695-347325720.png" style="margin:0px;padding:0px;border:0px;" />

第八步:然後在這個檔案夾裡面就可以放入你要上傳到github上的項目的檔案了,比如我在這裡放一個aaa.html檔案

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230132052804-61457162.png" width="396" height="117" style="margin:0px;padding:0px;border:0px;" />650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230132531507-1010302761.png" width="438" height="126" style="margin:0px;padding:0px;border:0px;" />

第九步:回到github用戶端上會出現如下介面如果你的跟我的不一樣那就點擊Uncommitted changes 旁邊的Show。(如果什麼都不出現建議關閉重啟下github用戶端)然後在文字框裡隨便輸入一些資訊然後點擊Commit to master

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230133154773-346266791.png" width="478" height="280" style="margin:0px;padding:0px;border:0px;" />

第十步:現在還並沒有在網頁上的github上看得到你上傳的檔案。最後只需要如下點擊Sync(同步),然後等待一會時間(根據你的網速)就可以了。

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230133846336-1235584454.png" width="546" height="110" style="margin:0px;padding:0px;border:0px;" />

第十一步:點擊右上方的小齒輪下的view on GitHub 然後在可以在瀏覽器上看到你上傳的檔案了。在此也就完成整個過程了。

650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230134346101-2076929054.png" width="396" height="189" style="margin:0px;padding:0px;border:0px;" />650) this.width=650;" src="http://images2015.cnblogs.com/blog/1087632/201612/1087632-20161230134406289-408593275.png" width="525" height="123" style="margin:0px;padding:0px;border:0px;" />

以上就是我分享的經驗,可能還有一些不足以及我沒說到的地方也歡迎大家提出來。如果覺得這篇文章對你有協助就給個推薦唄,關注我給你分享更多精彩內容!


gitHub使用入門和github for windows的安裝教程

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.