[MacPorts] WorkingWithGit modified

MacPorts noreply at macports.org
Fri Aug 19 19:09:41 PDT 2016


Page "WorkingWithGit" was changed by emer at emer.net
Diff URL: <https://trac.macports.org/wiki/WorkingWithGit?action=diff&version=2>
Revision 2
Comment: First shot at some info about git.
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: WorkingWithGit
=========================================================================
--- WorkingWithGit (version: 1)
+++ WorkingWithGit (version: 2)
@@ -1,1 +1,35 @@
 This page should contain information about how to work with [https://git-scm.com git], specifically from the point of view of someone familiar with [https://subversion.apache.org Subversion].
+
+To start:
+{{{
+svn checkout https://svn.macports.org/repository/macports 
+}}}
+becomes 
+{{{
+git clone git at github.com:macports/macports.git
+}}}
+When you clone you will have the entire repository. After you make a change, you can run {{{ git status }}}
+and get something like this.
+{{{
+On branch master
+Your branch is up-to-date with 'origin/master'.
+Changes not staged for commit:
+  (use "git add <file>..." to update what will be committed)
+  (use "git checkout -- <file>..." to discard changes in working directory)
+
+	modified:   aqua/iTerm2/Portfile
+
+no changes added to commit (use "git add" and/or "git commit -a")
+}}}
+What this tells me, is that I've changed a Portfile, but not done anything.
+After that, you can add the files that you want to add to your commit using {{{git add aqua/iTerm2/Portfile}}}.
+Now, {{{git status}}} will look like:
+{{{
+On branch master
+Your branch is up-to-date with 'origin/master'.
+Changes to be committed:
+  (use "git reset HEAD <file>..." to unstage)
+
+	modified:   aqua/iTerm2/Portfile
+}}}
+Then run {{{git commit}}} and everything is set. On your machine. To push to github you then have to run {{{git push}}}.
-------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 .


More information about the macports-changes mailing list