Skip to content

Instantly share code, notes, and snippets.

@loretoparisi
Created January 10, 2018 23:12
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 loretoparisi/97258f837c26b248cf5104261a02efe0 to your computer and use it in GitHub Desktop.
Save loretoparisi/97258f837c26b248cf5104261a02efe0 to your computer and use it in GitHub Desktop.
Git Init Repository from Remote Origin
git init
git add .
git commit -m "First commit"
git remote add origin $GIT_REMOTE_ORIGIN
git remote -v
git pull --allow-unrelated-histories origin master
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment