5/05/2016

Git 使用简易指南

  • 这里以Ubuntu系统和Bitbucket为例,进行说明。
  • 首先安装并配置git,并将公钥复制到Bitbucket中,此过程见 Hexo-Ubuntu-GithubPages 搭建独立博客 中的“Ubuntu安装和配置Git”部分
  • 将本地文件夹路径添加到Git中
$ cd ~/LATEX/template1
$ git init
$ git remote add origin https://liyanjie@bitbucket.org/liyanjie/risk-book-draft.git

如果想要修改 git remote add 仓库,可按如下进行操作:

$ git remote rm origin
$ git remote add origin <new repository>
  • 上传文件
$ git add *
$ git commit -m "discription text"
$ git push origin master

没有评论:

发表评论

Cloudflare R2 + WebP Cloud + uPic 免费图床方案

搭建免费全球可访问的图床方案:Cloudflare R2 + WebP Cloud + uPic