It seems like the first one isn’t working because your user doesn’t have the permissions for changing that directory, and the second because your root user doesn’t have the right SSH keys for accessing that git repository.
Depending on what you’re trying to do, it might be better to clone the repository to a different directory, or maybe chown
the current directory to have full access for your user
Related Posts:
- git error: failed to push some refs to remote
- Git error: “Please make sure you have the correct access rights and the repository exists”
- Untrack files from git temporarily
- Git, fatal: The remote end hung up unexpectedly
- Git – remote: Repository not found
- Pushing to Git returning Error Code 403 fatal: HTTP request failed
- Git master branch has no upstream branch
- How can I determine the URL that a local Git repository was originally cloned from?
- Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied
- How to pull from one remote branch to another branch in git?
- How to git add a whole folder
- What does ‘git remote add upstream’ help achieve?
- git status (nothing to commit, working directory clean), however with changes commited
- How can I rollback a git repository to a specific commit?
- How to remove a directory from git repository?
- gpg failed to sign the data fatal: failed to write commit object
- Git pull origin
overwrites master? - Git merge with force overwrite
- Git Push ERROR: Repository not found
- Why does Git tell me “No such remote ‘origin'” when I try to push to origin?
- git returns http error 407 from proxy after CONNECT
- Git pull till a particular commit
- Does Git Add have a verbose switch
- Why does Git say my master branch is “already up to date” even though it is not?
- Git Clone – Repository not found
- git SSL certificate- Invalid certificate chain while accessing
- Git push existing repo to a new and different remote repo server?
- What is .gitignore exactly?
- What happens when I do git pull origin master in the develop branch?
- How can I switch to another branch in git?
- GitHub: Permission denied (publickey). fatal: Could not read from remote repository
- GitHub – error: failed to push some refs to ‘[email protected]:myrepo.git’
- GitHub Error Message – Permission denied (publickey)
- Updating a local repository with changes from a GitHub repository
- Git push results in “Authentication Failed”
- Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
- Git push results in “Authentication Failed”
- Download single files from GitHub
- Is it safe to download code from GitHub?
- How to draw checkbox or tick mark in GitHub Markdown table?
- How to solve SSL certificate: self signed certificate when cloning repo from github?
- How to upload folders on GitHub
- How to find my GitHub username so that I can be found via the URL?
- github website publish cannot publish unborn HEAD
- Superscript in markdown (Github flavored)?
- Create a tag in a GitHub repository
- Git: Could not resolve host github.com error while cloning remote repository in git
- GitHub: invalid username or password
- “Cannot publish, unborn head” error message
- How can I give access to a private GitHub repository?
- How do I update or sync a forked repository on GitHub?
- Meaning of the GitHub message: push declined due to email privacy restrictions
- “*** Please tell me who you are.” when using SSH key
- Download a single folder or directory from a GitHub repo
- Pull request vs Merge request
- git pull from master into the development branch
- Clone A Private Repository (Github)
- Superscript in markdown (Github flavored)?
- error: cannot lock ref.. ‘refs/tags’ exists; cannot create ‘refs/tags/
- Your configuration specifies to merge with the
from the remote, but no such ref was fetched.? - ! [rejected] master -> master (fetch first)
- How to git add a whole folder
- How to add images to README.md on GitHub?
- Unity Collaborate vs GitHub
- Where can I find the GitHub ID in my account?
- What is the difference between pull and clone in git?
- “fatal: HttpRequestException encountered.” Error with GitHub/Bitbucket Repositories due to dropping TLS-1.0 support
- SourceTree keeps asking for Github password
- How do I set up Eclipse/EGit with GitHub?
- Repository size limits for GitHub.com
- How to change the license for a project at Github?
- fatal: could not read Username for ‘https://github.com’: No such file or directory
- Github Authentication Failed – … GitHub does not provide shell access
- How do I pull files from remote without overwriting local files?
- Git keeps prompting me for a password
- git push origin master does not work
- Found a swap file by the name
- How to install Git for Cygwin?
- Could not create work tree dir ‘example.com’.: Permission denied
- ‘ssh’ is not recognized as an internal or external command
- Git push hangs when pushing to Github?
- Issue with SourceTree while cloning a GitHub repository
- Git: Where exactly is the “working directory”?
- How do I run and compile this github project on my pc?
- Create empty branch on GitHub
- Git push requires username and password
- Is Git/GitHub a good WordPress deployment solution?
- GitHub .md files to WordPress pages
- WordPress Premium Plugin (3rd Party Github User)
- Have WP Theme update from Git Repository
- How to handle a GitHub webhook POST request?
- Pull latest stable release via git [closed]
- Git Hosting for WordPress SVN Plugin Repository [closed]
- Why doesn’t the “Press This” bookmarklet work on GitHub?
- Wordpres core-update theme renames theme folder name
- What is the wordpress Git hub Repo master on beta?
- Post via git repository
- Is it a good idea to make WordPress theme repository public?
- WordPress GitHub Workflow
- Git ignore everything except custom theme directory