Skip to content

Instantly share code, notes, and snippets.

@mohamed-ea
Created January 17, 2017 23:56
Show Gist options
  • Save mohamed-ea/777773c571ca3177844f40b7b328c9e5 to your computer and use it in GitHub Desktop.
Save mohamed-ea/777773c571ca3177844f40b7b328c9e5 to your computer and use it in GitHub Desktop.
Convert existing non-empty directory into a Git repository
cd <localdir>
git init
git add .
git commit -m 'message'
git remote add origin <url>
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment