Skip to content

Instantly share code, notes, and snippets.

@abhiesa
Last active April 10, 2018 18:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhiesa/63b3dd8b9aed5f54914d to your computer and use it in GitHub Desktop.
Save abhiesa/63b3dd8b9aed5f54914d to your computer and use it in GitHub Desktop.
Setup an Existing Octopress Repository After Git Clone
Basically, you need to create and link the deploy directory to master branch.
First, we clone the repo and switch to the correct branch:
1) git clone https://github.com/username/username.github.io.git
2) git checkout source
Then we need to setup the deploy directory.
1) mkdir _deploy
2) cd _deploy
3) git init
4) git remote add -t master -f origin https://github.com/username/username.github.io.git
Done! Now we can make changes in source branch and use rake gen_deploy as usual.
Using Oracle Java 7 is not formally supported by Ubuntu. There's plenty solutions for installing it, listed on https://help.ubuntu.com/community/Java .
The simplest one listed is this one:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
It'll keep your java 7 installation up to date.
To automatically set up the Java 7 environment variables JAVA_HOME and PATH:
sudo apt-get install oracle-java7-set-default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment