[MacPorts] WorkingWithGit modified

MacPorts noreply at macports.org
Sun Oct 30 05:07:40 CET 2016


Page "WorkingWithGit" was changed by larryv
Diff URL: <https://trac.macports.org/wiki/WorkingWithGit?action=diff&version=63>
Revision 63
Comment: revise cloning section
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: WorkingWithGit
=========================================================================
--- WorkingWithGit (version: 62)
+++ WorkingWithGit (version: 63)
@@ -20,10 +20,21 @@
 }}}
 
 
-== Common `git` tasks & notes about MacPorts' Subversion export ==
-
-=== Getting a working copy ===
-To start working with git, you need a copy of the sources. Follow the sections for [#cloneports getting the ports tree] or [#clone MacPorts base], depending on where you want to make changes, then continue with the next section.
+== Common `git` tasks == #tasks
+
+
+=== Cloning a repository === #cloning
+
+Obtaining a local copy of a Git repository is called "cloning" because you usually end up with a carbon copy of the source repository. GitHub allows cloning over [https://help.github.com/articles/which-remote-url-should-i-use HTTPS or SSH]:
+{{{
+$ git clone https://github.com/macports/macports-ports.git
+}}}
+{{{
+$ git clone git at github.com:macports/macports-ports.git
+}}}
+Both of these create a `macports-ports` directory containing a working tree at the latest commit, with the repository itself—with full history—at `macports-ports/.git`.
+
+(A list of our repositories is available at [[FAQ/GitHubMigration#repositories]].)
 
 
 === Committing changes in your working copy === #commit
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/WorkingWithGit>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'WorkingWithGit' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list