warning: redirecting to remote: Enumerating objects: 27, done. Remotesvisualize and add/rename/delete remote refs“remotes” refer to remote connections to other repos.It’s a shortname for a long url or references to a commit, such as a branch, tag, HEAD, remote branch.Unlike Centralized VCS, git manages remote repositories just like any other full git repository.Different repos can be connected with eachother and share the differences of data.Few repos with full access, few with read-only access etc.Step 1: Clone the projectUnder your home directory, run the below git clone command:git clone learnRemotesA new directory ‘learnRemotes’ will be created, this is your working director圜loning into 'learnRemotes'. We shall cover this in detail under the ‘bare repository’ section.2. Clone repositories – git collaborationThis git clone tutorial shows how to collaborate on githubCommand: git clone: Clones a repository into a new director圜lones the entire existing repo with complete project historycreates a working copycreates a remote connection(reference) to the original repo.Creates and checks out an initial branch that is forked from the cloned repo’s currently active branch.Usage of git clone command:-git clone repository git clone git clone There is repo to repo collaboration, and no central repository:NOTE: If no name is given, a directory will be created with the same name as the remote repository.a) Git protocols can be of any protocol types as: https, http, ssh, remote server, local path git URLs also supports ftp but it is deprecated.b) Clone different repositories#https: git clone #http: git clone #ssh: git clone #Clone from a remote server: git clone #Clone from your local path: git clone file:///local/pathThere is also a –-bare flag to the ‘git clone’ command that creates a bare repository to publish your changes.
0 Comments
Leave a Reply. |