Changes between Version 12 and Version 13 of GetMacPortsSource


Ignore:
Timestamp:
Mar 11, 2017, 4:45:45 PM (7 years ago)
Author:
jmroot (Joshua Root)
Comment:

Update for git

Legend:

Unmodified
Added
Removed
Modified
  • GetMacPortsSource

    v12 v13  
    1 {{{
    2 #!div style="background: lightyellow;"
    3 TODO: This information is outdated. MacPorts migrated to GitHub.
    4 }}}
     1== Git Source Control System ==
    52
    6 == Subversion Source Control System ==
    7 
    8 MacPorts uses [http://subversion.apache.org/ Subversion] as its version control system. Subversion documentation is available through the [http://svnbook.red-bean.com/ online Subversion Book]. The Subversion command line client svn is shipped with Apple's Mac OS X Leopard, and available through MacPorts on earlier Mac OS X versions. Subversion GUI clients are built in to [https://developer.apple.com/xcode/ Xcode] and [http://www.bbedit.com BBEdit].
     3MacPorts uses [https://git-scm.com/ Git] as its version control system. Git documentation is also available [https://git-scm.com/doc on the web]. The Git command line client is shipped with Xcode 4.1 and later, and is also available through MacPorts. Git GUI clients are built in to [https://developer.apple.com/xcode/ Xcode] and [http://www.bbedit.com BBEdit].
    94
    105== Browsing the MacPorts Sources Online ==
    116
    12 You may browse the MacPorts Subversion sources online in one of three ways:
     7You may browse the MacPorts Git sources online [https://github.com/macports on GitHub].
    138
    14  1. Via the [browser: Trac source code browser]
    15  1. Directly through Subversion via its underlying [https://svn.macports.org/repository/macports/ http support].
    16  1. You may also directly access the Subversion respository through a WebDav client such as the Mac OS X Finder. (Select Connect to Server… and paste in the URL https://svn.macports.org/repository/macports/).
     9== Checking out MacPorts sources using Git ==
    1710
    18 
    19 == Checking out MacPorts sources using Subversion ==
    20 
    21 To checkout the sources with Subversion:
     11To checkout the sources with Git:
    2212
    2313{{{
    24 # Checkout the macports trunk
    25 svn checkout https://svn.macports.org/repository/macports/trunk macports-trunk
     14# Checkout the macports base master branch
     15git clone https://github.com/macports/macports-base.git macports-base
    2616}}}
    2717
    28 When committing to the repository for the first time, subversion will use your local account name as the username for svn.macports.org. This is almost certainly the wrong username, so you can either hit enter when it says "password for 'local-user-name':" and then enter the correct !alias@macports.org when it prompts for username, or you can pass {{{--username}}} to svn like the following example:
     18This will check out the base repository; there are several other repositories including `macports-ports` for the ports tree. Check out any of these that you wish to use as above, simple replacing `macports-base` with the name of the repository you want.
    2919
    30 {{{
    31 svn ci . -m 'log message' --username alias@macports.org
    32 }}}
    33 
    34 After the first commit with the correct username and password, subversion will cache this information (in ~/.subversion/).
     20When pushing commits to the repository on GitHub, git will prompt for a username and password. You need to use your GitHub handle, not your MacPorts one. You can set up [https://help.github.com/articles/caching-your-github-password-in-git/ password caching] to avoid being asked every time.