Clone Blog to Ubuntu
My current working space for this hexo blog is in windows 10.
This is how I migrate to Ubuntu.
upload project to github
- create new repo in github called : hexoBlog
- If any folders inside are cloned from github. Need to remove git related files:
- .git
- .gitignore
- .github/
- …
- open git bash on blog folder, and run:
1
2
3
4
5$ git init
$ git add --all
$ git commit
$ git remote add origin https://github.com/Ryanluoxu/hexoBlog.git
$ git push git push
may face “fatal: The current branch master has no upstream branch”. Run:1
$ git push -u origin master
Now project is on the github.
clone project to Ubuntu
1 | $ sudo apt-get install git-core #1 install git |
Now local working space is : ~/git/hexoblog/
installation
1 | $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash #1 install Node Version Manager |
Done.