It has been 1486 days since the last update, the content of the article may be outdated.

这是最初的那段时光,啥也不懂,不懂前端,不懂框架。那时候才研究生二年级,脑子里酝酿着转行找工作。先学Python,后学pelican,才慢慢引导我向前端进发。
后来如愿拿了一堆offer, 思科,中兴,华为,海康,TPLink,寒武纪。岗位从前端到后端到云计算开发。虽然后来又经历了很多事,但是最初开始学习新鲜东西的情形仍旧历历在目。
在寒假的学校,冬雪开始飘着……

First time configuration

For the first time commit to you github, you need a local git configuration.
Use the commandline:

$ git config --global user.name "your name"
$ git config --global user.email johndoe@example.com  

you can see your global config. using:

$ git config --list
user.name=your name
user.email=johndoe@example.com

if use the --global option, the information above will be stored in ~/.gitconfig
More about git configuration
And git document,download provided for 中文版 and English version.


Update blog

Our script named update, put under ~/blog/, i.e. your blog root path
Content of update :

 #cp -v ./setting.py content/extra/setting.py  # unnecessary

make html  
cd output  
echo "git init  " ; git init  
echo "git add . " ; git add .  
 #git remote add origin https://github.com/jihenghu/jihenghu.io   #uncomment this for the first pulish    
echo "git commit" ; git commit -m $1  
echo "git pull  " ; git pull origin master  
echo "git push  " ; git push origin master  

Use command line :

~/blog$ chmod +x update  
~/blog$ ./update "comment to be attached to "git commit -m""  

Example:

Shell script:

autoshell

autoshell

Cmd out:

autoshell

autoshell

For more about the order of git commit and git pull click here