1. 程式人生 > >還在使用pdf、word簡歷?簡單五步實現github托管個人逼格簡歷

還在使用pdf、word簡歷?簡單五步實現github托管個人逼格簡歷

ret ddr linus oda 父親 unit weixin 系統 但是

寫在前面:

什麽是git、github?

git 版本控制工具

github 通過git工具做的版本控制的項目托管平臺

項目開發肯定不止一個程序猿,多個程序猿針對同一個文件進行代碼讀寫操作時,是先保存程序猿a還是程序猿b呢?這就很容易沖突,所以就有了git這種版本控制工具解決項目更新。慢慢的隨著開源精神的發展以及在線的需求就有了github項目托管平臺,對於git本地服務來說,github就是一個遠程的倉庫。

逼格在哪裏?

Github已經取代Sourceforge,成為最活躍的代碼交流社區,一個程序員要是不知道github都沒臉見人

就目前來看github已經成為不少程序員敲門磚,更直觀告訴hr自己的水平,實力大膽要求高薪!~從此贏取白富美走上人生巔峰

技術分享

一分鐘了解git前世今生

“我女兒的同學們在聽說她的父親是 Git 的創作者之後非常興奮,這種興奮程度要比說有個 Linux 創作者的父親更高。”

     --Linus Torvalds

技術分享

值得玩味的是歷史是驚人的相似 ,最初因為沒有免費可用的多任務多用戶的系統,還是大學生的Linus Torvalds尋思著買不起咱就自己動手造個唄

Linux誕生

2005年開發 BitKeeper 的商業公司收回了 Linux 內核社區免費使用BitKeeper的權力,BitKeeper表示不跟Linux好了,這下完蛋了在當時除了 BitKeeper 之外,沒有其他軟件可以做到更好的遠程協同。Linus 不想倒退回到沒有高效版本管理的時代,沒有了高效版本管理的工具用了,咬咬牙革命尚未成功 咱繼續造個唄,消失了一個禮拜後左右Linus Torvalds帶來了git只花費了十余天時間這就是

git誕生

技術分享

git在誕生最初幾年並不被看好認為操作違和與當時SVN方式相差很大,但是慢慢地,圈內的聲音發生了變化後來的發展大家也都看到了

2007年幾乎每個開發者都會使用的 GitHub 則使用 Git 為核心技術問世

2011年,Github已經取代Sourceforge,成為最活躍的代碼交流社區。這意味著在Open Source Community(開源社區),Git取代了SVN已經成為事實。

最簡單入門!強烈推薦沒有之一!!!

http://www.bootcss.com/p/git-guide/

進階入門! 一本就夠了!!!

英文版:

https://git-scm.com/book/en/v2

中文版:

https://git-scm.com/book/zh/v2

教程開始

git命令就不羅列介紹,上述網址都有詳細介紹

第一步:https://github.com/ 註冊個人賬號創建自己的第一個倉庫

技術分享

第二步:Linux默認安裝好了git

技術分享

  沒有的話也很簡單#yum -y install git

第三步:遠程連接倉庫

  # git clone https://github.com/username/username.github.io

  # cd /root/username.github.io

技術分享

第四步

  # wget http://labfile.oss.aliyuncs.com/courses/624/cv-template.zip //下載阿裏的簡歷模板

  # unzip cv-template.zip //解壓

  # mv cv-template/* . && rm -rf cv-template* __MACOSX*

  

[[email protected] username.github.io]# wget http://labfile.oss.aliyuncs.com/courses/624/cv-template.zip
--2017-08-25 20:02:45--  http://labfile.oss.aliyuncs.com/courses/624/cv-template.zip
Resolving labfile.oss.aliyuncs.com... 118.178.161.16
Connecting to labfile.oss.aliyuncs.com|118.178.161.16|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 156602 (153K) [application/zip]
Saving to: “cv-template.zip100%[======================================>] 156,602      798K/s   in 0.2s    

2017-08-25 20:02:45 (798 KB/s) - “cv-template.zip” saved [156602/156602]

[[email protected] username.github.io]# unzip cv-template.zip
Archive:  cv-template.zip
   creating: cv-template/
  inflating: cv-template/.DS_Store   
   creating: __MACOSX/
   creating: __MACOSX/cv-template/
  inflating: __MACOSX/cv-template/._.DS_Store  
  inflating: cv-template/index.html  
   creating: cv-template/static/
  inflating: cv-template/static/.DS_Store  
   creating: __MACOSX/cv-template/static/
  inflating: __MACOSX/cv-template/static/._.DS_Store  
   creating: cv-template/static/css/
  inflating: cv-template/static/css/.DS_Store  
   creating: __MACOSX/cv-template/static/css/
  inflating: __MACOSX/cv-template/static/css/._.DS_Store  
  inflating: cv-template/static/css/style.css  
   creating: cv-template/static/fonts/
  inflating: cv-template/static/fonts/.DS_Store  
   creating: __MACOSX/cv-template/static/fonts/
  inflating: __MACOSX/cv-template/static/fonts/._.DS_Store  
  inflating: cv-template/static/fonts/demo.css  
  inflating: cv-template/static/fonts/demo.html  
  inflating: cv-template/static/fonts/iconfont.css  
  inflating: cv-template/static/fonts/iconfont.eot  
  inflating: cv-template/static/fonts/iconfont.svg  
  inflating: cv-template/static/fonts/iconfont.ttf  
  inflating: cv-template/static/fonts/iconfont.woff  
   creating: cv-template/static/image/
  inflating: cv-template/static/image/.DS_Store  
   creating: __MACOSX/cv-template/static/image/
  inflating: __MACOSX/cv-template/static/image/._.DS_Store  
  inflating: cv-template/static/image/bg.jpg  
  inflating: cv-template/static/image/weixin.png  
   creating: cv-template/static/js/
  inflating: cv-template/static/js/.DS_Store  
   creating: __MACOSX/cv-template/static/js/
  inflating: __MACOSX/cv-template/static/js/._.DS_Store  
  inflating: cv-template/static/js/modal.js  
  inflating: cv-template/static/js/script.js  
[[email protected] username.github.io]# ls
cv-template  cv-template.zip  __MACOSX
[[email protected] username.github.io]#  mv cv-template/* . && rm -rf cv-template* __MACOSX* 
[[email protected] username.github.io]# ls
index.html  static
[[email protected] username.github.io]# firefox index.html 

# firefox index.html  //瀏覽器打開修改圖片、身份等信息

技術分享

技術分享

技術分享

第五步:添加、提交到倉庫

# git add --all

# git commit -m "Initial commit"

# git push -u origin master

[[email protected] username.github.io]# git add --all
[[email protected] username.github.io]# git commit -m "Initial commit"
[master (root-commit) 0904ac1] Initial commit
 Committer: root <[email protected]>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email [email protected]

If the identity used for this commit is wrong, you can fix it with:

    git commit --amend --author=Your Name <[email protected]>

 18 files changed, 1562 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
 create mode 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/image/.DS_Store
 create mode 100755 static/image/bg.jpg
 create mode 100644 static/image/weixin.png
 create mode 100644 static/js/.DS_Store
 create mode 100644 static/js/modal.js
 create mode 100644 static/js/script.js
[[email protected] username.github.io]# git push -u origin master
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/hehehe886/username.github.io/info/refs

fatal: HTTP request failed

報錯解決:在16行代碼處添加用戶

 1 [[email protected] username.github.io]# ll -a
 2 total 28
 3 drwxr-xr-x   4 root root  4096 Aug 25 20:03 .
 4 dr-xr-x---. 33 root root  4096 Aug 25 20:20 ..
 5 drwxr-xr-x   8 root root  4096 Aug 25 20:18 .git
 6 -rw-r--r--   1 root root 11511 Sep  1  2016 index.html
 7 drwxr-xr-x   6 root root  4096 Sep  1  2016 static
 8 [[email protected] username.github.io]# vim .git/config 
 9 [core]
10         repositoryformatversion = 0
11         filemode = true
12         bare = false
13         logallrefupdates = true
14 [remote "origin"]
15         fetch = +refs/heads/*:refs/remotes/origin/*
16         #url = https://github.com/hehehe886/username.github.io
17         url = https://hehehe886@github.com/hehehe886/username.github.io
18 [branch "master"]
19         remote = origin
20         merge = refs/heads/master

再次git push,彈出框輸入密碼,即可提交

恭喜完成所有步驟,手機端pc端打開 https://username.github.io. 大功告成!~

技術分享

這是一個二維碼

給個機會,客官掃我

技術分享

還在使用pdf、word簡歷?簡單五步實現github托管個人逼格簡歷