Created
January 17, 2017 23:56
-
-
Save mohamed-ea/777773c571ca3177844f40b7b328c9e5 to your computer and use it in GitHub Desktop.
Convert existing non-empty directory into a Git repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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