12/3/2023 0 Comments Sudo git clone command![]() ![]() git clone ssh://URL.com/soft.git softgit the ssh key idrsa and idrsa.pub are under /home/user/.ssh my purpose is the execute git with sudo but I got the following error Cloning into '/home/user/git/soft'. Sudo ZSH=/usr/share/oh-my-sh sh -c install. 11 when I make git clone with ssh from a user prompt it works properly. If you want to install the software for everyone, download the script, use sudo and make setting ZSH part of the command. If you just want to install the software for yourself, unset ZSH and run the installer. First, check what's in your environment with env | sort and make sure it's all correct. How to "fix" this depends on what you want. Normally sudo should preserve your home directory, but somehow it isn't and it's gone into root's home directory. with root permissions) it does have permission to write to /usr/share/oh-my-zsh, but sudo will clean up your environment variables so ZSH was not set for the command. This is normal, a regular user should not have /usr/share permission. You don't have permission to write to /usr/share. If it went into /usr/share/oh-my-zsh you had ZSH set to that. By default it will install into ~/.oh-my-zsh. ![]() Where it installs is controlled by the ZSH environment variable. Install.sh is trying to clone a repository. ![]() As I'm sure you're aware, turning off TLS verification provides no protection against an active attacker and allows anybody who wants to read and modify all of your data.This is not Git, this is the install script for oh-my-zsh. Since you're going to be responsible and kind to your users and set up a domain name, you should also be responsible and set up a publicly trusted certificate as well. You can still do it for a GHES instance if you really want to, but not for. You should find the OpenCV source in a folder named just opencv where you launched the git clone command. If you try to clone using an IP address and that address changes, everybody's remotes for every repository will need to change and all your users will be angry at you. 1 Answer Sorted by: 8 When you've started the clone command you should have get this message: git clone Cloning into 'opencv'. This step may take more time depends when you upgrade the system last. If your on-premises server is a GitHub Enterprise Server instance, you may be able to use a hard-coded IP address and a personal access token, but in general using a hard-coded IP address is a bad idea, and you should avoid it in favor of specifying a domain name. sudo apt-get update Step 2: Upgrade the system. You should also not hard-code IP addresses for GitHub or other services in your hosts file because they can and do change and if you do so anyway you may find that you can no longer access those services at all. For example, and share the same IPs and can only be distinguished in this way. This domain name is used to route the data to the proper service, since GitHub hosts many services through the same IP addresses. That's because when you use a domain name for HTTP or HTTPS, it connects to the IP address and sends the domain name in the Host header. In this page we'll discuss extended configuration options and common use cases of git clone. git clone is a Git command line utility which is used to target an existing repository and create a clone, or copy of the target repository. You cannot rely on cloning a repository using GitHub (that is, ) using just a plain IP address it simply isn't guaranteed to work. Here we'll examine the git clone command in depth. The goal is to be able to access an on-prem git server (let's say github) that doesn't have a domain name, that's why I need it to work with an IP address. P.S: I know that setting http.sslVerify=false is unsafe but I still need it for my use-case. If I'm executing the same thing but with github's domain name then it works: git -c http.sslVerify=false clone also works with github's IP and a direct access (not with a personal access token): git -c http.sslVerify=false clone Īny idea how to make it work with the IP and personal access token? I'm trying the following command: git -c http.sslVerify=false clone 140.82.121.4 is the IP address of. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |