ReZeroS / LinuxQA

0 stars 0 forks source link

Hexo deploy way: Travis CI #10

Open ReZeroS opened 5 years ago

ReZeroS commented 5 years ago
# Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:

git fetch upstream

# Make sure that you're on your master branch:

git checkout master

# Rewrite your master branch so that any commits of yours that
# aren't already in upstream/master are replayed on top of that
# other branch:

git rebase upstream/master
ReZeroS commented 5 years ago

remote upstream already exists.

git remote -v 
git remote rm upstream
ReZeroS commented 5 years ago

theme remote config

git clone <repository> --recursive 递归的方式克隆整个项目
git submodule add <repository> <path> 添加子模块
git submodule init 初始化子模块
git submodule update 更新子模块
git submodule foreach git pull 拉取所有子模块
ReZeroS commented 5 years ago

new pc

$ git clone https://github.com/buginux/swiftyper-blog.git
$ cd swiftyper-blog
$ npm install
$ git submodule update --init