Skip to content

Instantly share code, notes, and snippets.

@sivasonaiv
sivasonaiv / git.migrate
Created May 17, 2017 05:10 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@sivasonaiv
sivasonaiv / package.sbt
Last active April 28, 2017 10:19
package.sbt
name := "Spark-Sample Project"
version := "1.0"
scalaVersion := "2.11.8"
val sparkVersion = "2.1.0"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion,