Solution: On this case, the solution was using the dot
, so: rm -rf .* && git clone ssh://[email protected]/home/user/private/repos/project_hub.git .
rm -rf .* &&
may be omitted if we are absolutely sure that the directory is empty.
Credits go to: @James McLaughlin on comments below.
Related Posts:
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- How do I clone a specific Git branch? [duplicate]
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- Clone A Private Repository (Github)
- How to clone a specific Git tag
- Git how to clone with SSH key, username
- How do I clone a single branch in Git?
- How to clone git repository with specific revision/changeset?
- How do you clone a Git repository into a specific folder?
- Git clone verbose output?
- How to get Git to clone into current directory
- How do I clone a subdirectory only of a Git repository?
- Git push requires username and password
- How do I delete a Git branch locally and remotely?
- Difference between “git add -A” and “git add .”
- error: src refspec master does not match any
- How to cherry pick from 1 branch to another
- How to Git stash pop specific stash in 1.8.3?
- How do I revert a Git repository to a previous commit?
- How to merge branch to master?
- What happens when I do git pull origin master in the develop branch?
- How can I switch to another branch in git?
- What is the `git restore` command and what is the difference between `git restore` and `git reset`?
- GitHub: Permission denied (publickey). fatal: Could not read from remote repository
- Git fetch remote branch
- Updates were rejected because the tip of your current branch is behind its remote counterpart
- git stash apply version
- Git fetch remote branch
- Practical uses of git reset –soft?
- Updating a local repository with changes from a GitHub repository
- How do I remove a submodule?
- Git push results in “Authentication Failed”
- Git push results in “Authentication Failed”
- Download single files from GitHub
- Ignoring directories in Git repositories on Windows
- How can I merge multiple commits onto another branch as a single squashed commit?
- How to find my GitHub username so that I can be found via the URL?
- Create Git branch with current changes
- github website publish cannot publish unborn HEAD
- The following untracked working tree files would be overwritten by merge, but I don’t care
- Why do I have to “git push –set-upstream origin
“? - How do you create a remote Git branch?
- Move the most recent commit(s) to a new branch with Git
- How do I resolve git saying “Commit your changes or stash them before you can merge”?
- How do you stash an untracked file?
- Filename too long in Git for Windows
- What is the difference between git rm –cached and git reset
? - What does git rev-parse do?
- git – pulling from specific branch
- GitHub: invalid username or password
- Why do I have to “git push –set-upstream origin
“? - How do I update or sync a forked repository on GitHub?
- Stash just a single file
- How can I reset or revert a file to a specific revision?
- How do I provide a username and password when running “git clone [email protected]”?
- “*** Please tell me who you are.” when using SSH key
- master branch and ‘origin/master’ have diverged, how to ‘undiverge’ branches’?
- git pull from master into the development branch
- The following untracked working tree files would be overwritten by merge, but I don’t care
- error: cannot lock ref.. ‘refs/tags’ exists; cannot create ‘refs/tags/
- Is there a “theirs” version of “git merge -s ours”?
- Your configuration specifies to merge with the
from the remote, but no such ref was fetched.? - Heroku: How to change a Git remote on Heroku
- Updates were rejected because the remote contains work that you do not have locally
- fatal: This operation must be run in a work tree
- Undoing a ‘git push’
- How to replace local branch with remote branch entirely in Git?
- Git diff against a stash
- What’s the significance of the “No newline at end of file” log?
- How to revert a “git rm -r .”?
- Git update submodules recursively
- Do a “git export” (like “svn export”)?
- What does git push origin HEAD mean?
- How do I set up Eclipse/EGit with GitHub?
- Repository size limits for GitHub.com
- How do I push a local Git branch to master branch in the remote?
- git push origin master does not work
- Found a swap file by the name
- Could not create work tree dir ‘example.com’.: Permission denied
- How to answer the git prompt in npm init for a local repo
- How to search in commit messages using command line?
- failed to push some refs to [email protected]
- How to update Git clone
- How to get changes from another branch
- Sourcetree adding files in global .gitignore, not in repository .gitignore
- git pull remote branch cannot find remote ref
- How do I change the default location for Git Bash on Windows?
- Git push hangs when pushing to Github?
- Does running git init twice initialize a repository or reinitialize an existing repo?
- Eclipse EGit Checkout conflict with files: – EGit doesn’t want to continue
- Git Push Error: insufficient permission for adding an object to repository database
- WordPress with Git
- WordPress Git Workflow Help
- Multiple copies of the same website: how to organize code/architecture?
- Version control with a team of non-developers
- Questions about Git and WordPress [duplicate]
- What’s is the best stack for cPanel continuous deployment?
- How to tell which local branch is tracking which remote branch in Git?
- How do I edit git’s history to correct an incorrect email address/name [closed]