GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁-創(chuàng)新互聯

"如果我比別人看得遠,那是因為我站在巨人的肩膀上"

成都服務器托管,創(chuàng)新互聯提供包括服務器租用、資陽托管服務器、帶寬租用、云主機、機柜租用、主機租用托管、CDN網站加速、國際域名空間等業(yè)務的一體化完整服務。電話咨詢:18982081108

這是加利利的第一篇文章

系統(tǒng)環(huán)境:CentOS6.6桌面版

工具:VNC及Xshell

流程:

     創(chuàng)建倉庫位置——初始化倉庫——配置用戶名及郵箱——下載簡歷模板——編輯簡歷——GitHub上創(chuàng)建倉庫——上傳本地代碼到遠程倉庫——使用托管源——完成

action!

創(chuàng)建倉庫位置:

[root@centos66 ~]# mkdir -p Code/CV
[root@centos66 ~]# cd Code/CV/

初始化倉庫:

[root@centos66 CV]# git init                                    #初始化倉庫
Reinitialized existing Git repository in/root/Code/CV/.git/

用戶名及郵箱配置:

[root@centos66 CV]# git config --globaluser.name "userlx"
[root@centos66 CV]# git config --global user.email"15210680512@163.com"

下載簡歷模板:

[root@centos66 CV]# wget http://labfile.oss.aliyuncs.com/courses/624/cv-template.zip

編輯簡歷:

[root@centos66 CV]# unzip cv-template.zip
[root@centos66 CV]# mv cv-template/*.
[root@centos66 CV]# rm -rf cv-template*  __MACOSX*

[root@centos66 CV]#firefox index.html        #在VNC控制臺打開 Xshell中打開會報錯

修改簡歷,就是在網頁上可以直接更改的,但是,,,這系統(tǒng)的輸入法特別的不好用,我就只更改了幾項內容;

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

#修改完,然后就Ctrl+s保存網頁

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

創(chuàng)建倉庫:

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

#輸入倉庫名稱——創(chuàng)建倉庫(默認設置為公有,私有是收費的)

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

#創(chuàng)建完成后可以看到提示操作

    快速設置-如果你之前做過類似的事情

    或者在命令行上創(chuàng)建一個新的存儲庫

    或者從命令行中推動現有的存儲庫

英語不好的朋友可以像我一樣有道翻譯;但翻譯后一定要對應著學習一下!

OK!下一步!

上傳本地代碼到遠程倉庫:

[root@centos66 CV]# git add .                          #將所有修改過的工作文件提交暫存區(qū)
[root@centos66 CV]# git commit -m"first commit"        #添加備注first commit
[master (root-commit) cacc967] first commit
 26files changed, 2286 insertions(+), 0 deletions(-)
 create mode 100644 index.html
 create mode 100644 static/.DS_Store
 create mode 100644 static/css/.DS_Store
 create mode 100644 static/css/style.css
 create mode 100644 static/fonts/.DS_Store
 create mode 100644 static/fonts/demo.css
 createmode 100644 static/fonts/demo.html
 create mode 100644 static/fonts/iconfont.css
 create mode 100644 static/fonts/iconfont.eot
 create mode 100644 static/fonts/iconfont.svg
 create mode 100644 static/fonts/iconfont.ttf
 create mode 100644 static/fonts/iconfont.woff
 create mode 100644 static/p_w_picpath/.DS_Store
 create mode 100755 static/p_w_picpath/bg.jpg
 create mode 100644 static/p_w_picpath/weixin.png
 create mode 100644 static/js/.DS_Store
 create mode 100644 static/js/modal.js
 createmode 100644 static/js/script.js
 create mode 100644"\347\256\200\345\216\206\347\224\237\346\210\220\345\231\250.html"
 create mode 100644"\347\256\200\345\216\206\347\224\237\346\210\220\345\231\250_files/jquery.js"
 create mode 100644 "\347\256\200\345\216\206\347\224\237\346\210\220\345\231\250_files/remodal-default-theme.css"
 create mode 100644"\347\256\200\345\216\206\347\224\237\346\210\220\345\231\250_files/remodal.css"
 create mode 100644"\347\256\200\345\216\206\347\224\237\346\210\220\345\231\250_files/remodal.js"
 create mode 100644"\347\256\200\345\216\206\347\224\237\346\210\220\345\231\250_files/script.js"
 create mode 100644"\347\256\200\345\216\206\347\224\237\346\210\220\345\231\250_files/style.css"
 create mode 100644 "\347\256\200\345\216\206\347\224\237\346\210\220\345\231\250_files/weixin.png"
[root@centos66 CV]# git config --globaluser.name "userlx"                 #配置github用戶
[root@centos66 CV]# git config --globaluser.email "15210680512@163.com"   #配置github郵箱
[root@centos66 CV]# git remote add orgin https://github.com/userlx/resume.git                                                                      #設置遠程倉庫地址,地址在上圖中
[root@centos66 CV]# git push -u origin master             #推送到遠程倉庫
fatal: 'origin' does not appear to be a gitrepository
fatal: The remote end hung up unexpectedly                #報錯
[root@centos66 CV]# git remote add orgin https://github.com/userlx/resume                                                                          #更換遠程倉庫地址
fatal: remote origin already exists.                      #提示遠程倉庫已存在
[root@centos66 CV]# git remote rm origin                  #刪除遠程倉庫
[root@centos66 CV]# git remote add orgin 
                                                          #重新設置遠程倉庫地址 
[root@centos66 CV]# git push -u origin master             #再次推送到遠程倉庫 
 error: The requested URL returned error:403 Forbidden while accessing https://github.com/userlx/resume.git/info/refs                              #報錯!提示請求失敗
fatal: HTTP request failed

[root@centos66 CV]#vim .git/config                        #更改git配置文件
[core]
       repositoryformatversion = 0
       filemode = true
       bare = false
       logallrefupdates = true
[remote "orgin"]
       url = https://github.com/userlx/resume.git
       fetch = +refs/heads/*:refs/remotes/orgin/*

       url = https://github.com/userlx/resume.git
       改為:
       url = https://userlx@github.com/userlx/resume.git 
[root@centos66 CV]# git push -u originmaster                #再再次推送到遠程倉庫 
(gnome-ssh-askpass:46184): Gtk-WARNING **:cannot open display:    #cannot open display

#我是用xshell打開的,所以會顯示cannot open display;于是就改用VNC,如下:

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

#提示輸入密碼(GitHub密碼)

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

使用托管源:

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

#選擇Settings——向下拉 找到GitHub Pags

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

#選擇master branch——save

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

Congratulation! Your site is published at https://userlx.github.io/resume/

以后就可以訪問userlx.github.io/resume了!

就是這么簡單,但是!做之前先別急著敲命令,先知曉流程,理清思路,明白命令,之后再下手做;必定事半功倍!共勉··

另一個問題:我的簡歷好像還沒改完整呢?

遠程或者虛擬機上都不方便改,那就在自己電腦上改!下載個github客戶端,就可以在本地直接打開隨意操作;純圖形化操作,不再贅述;

GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁

拓展:Git知識點很多,GitHub很強大,該篇博客講的知識九牛一毛;

    git講解:廖雪峰講git

    git命令:那個誰的博客

    VNC的使用就不說了吧

另外有需要云服務器可以了解下創(chuàng)新互聯scvps.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

當前名稱:GitHub使用教程——(1)使用GitHub創(chuàng)建簡歷展示頁-創(chuàng)新互聯
標題網址:http://bm7419.com/article46/giceg.html

成都網站建設公司_創(chuàng)新互聯,為您提供軟件開發(fā)定制開發(fā)、小程序開發(fā)、網站導航、靜態(tài)網站、動態(tài)網站

廣告

聲明:本網站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯

成都網站建設公司