Created
August 30, 2018 18:40
-
-
Save glebovdev/556c7655a85726cb015e91dcd64aafb7 to your computer and use it in GitHub Desktop.
Checkout master branch in an existing not empty directory
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
# in the folder | |
git init | |
git remote add origin [repo-url] | |
git fetch | |
git checkout origin/master -ft |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment