The one-step solution would be:
git clone --no-checkout <repo_url>
or if you already have an empty dir for it,
cd myrepo
git clone --no-checkout <repo_url> .
More Related Contents:
- Multiple GitHub accounts on the same computer?
- How can I delete all Git branches which have been merged?
- Download single files from GitHub
- Git Init in home directory – now unable to commit changes
- Preferred Github workflow for updating a pull request after code review
- git gc –aggressive vs git repack
- Trying To Understand/Determine A Basic Git Workflow
- How to update a pull request from forked repo?
- Git push: “fatal ‘origin’ does not appear to be a git repository – fatal Could not read from remote repository.”
- Why is “origin/HEAD” shown when running “git branch -r”?
- Git rebase – commit select in fork-point mode
- How do you fork your own repository on GitHub?
- git diff between cloned and original remote repository
- Adding a collaborator to my free GitHub account?
- Git branch name – case sensitive or insensitive?
- How to sync changes on my local server with the ones on the remote one without commiting?
- “Cannot spawn ssh” when connecting to Github, but ssh -T [email protected] works?
- Push and pull my conda environment using git
- Git: How to make outer repository and embedded repository work as common/standalone repository?
- Why does ‘git commit’ not save my changes?
- Pushing to Git returning Error Code 403 fatal: HTTP request failed
- How can I make git accept a self signed certificate?
- Can’t push to GitHub because of large file which I already deleted
- I ran into a merge conflict. How do I abort the merge?
- Difference between Git and GitHub
- git – skipping specific commits when merging
- How do I get my ‘Detached HEAD’ commits back into master [duplicate]
- Get changes from master into branch in Git
- Git: Merge a Commit into a different Branch
- git svn workflow – feature branches and merge