常用网站代码

常用代码

git常用

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
git init 
//git初始化
git add .
//添加到队列
git commit -m "xxxx"
git commit -m "update729"

//添加文件完成修改
git push -u origin branch
//通过xxbranch发送,例如git push -u origin idku

git branch
//查看多少有分支
git branch idku
git add *
git branch idku
git checkout idku
git commit -m "init idku"
git push origin idku


git remote rm origin
git remote add origin https://gitee.com/caoxinyu/project.git
//移除原有remote链接到新的
git push origin master
git push -u origin master
git push -f origin master

git clone https://gitee.com/caoxinyu/project.git

Hexo 命令语句笔记

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//新建博客文章 create new posts
hexo new "my new post"
//generate 生成数据文件
hexo g
//deploy 部署到remote
hexo d 部署
//清除缓存
hexo clean
//run server本地服务器预览
hexo server
hexo s
//草稿发表为正式文章
hexo publish //+draft
hexo p
//完成后部署
hexo g -d
hexo generate --deploy
hexo deploy --generate