| 110 | == Committing and pushing == |
| 111 | |
| 112 | OK, the basic structure and files of the library are present, so it is time to commit the changes to the local repo. |
| 113 | |
| 114 | || Hint: (((git help command-name}}} will launch a browser window with documentation for command-name. || |
| 115 | |
| 116 | Execute these commands in boost-root/libs/simple (shown with typical output): |
| 117 | |
| 118 | {{{ |
| 119 | >git add . |
| 120 | |
| 121 | >git commit -m "Initial commit" --dry-run |
| 122 | # On branch master |
| 123 | # Changes to be committed: |
| 124 | # (use "git reset HEAD <file>..." to unstage) |
| 125 | # |
| 126 | # new file: include/boost/simple/twice.hpp |
| 127 | # new file: test/Jamfile.v2 |
| 128 | # new file: test/twice_test.cpp |
| 129 | # |
| 130 | |
| 131 | >git commit -m "Initial commit" |
| 132 | [master 3a3a654] Initial commit |
| 133 | 3 files changed, 18 insertions(+) |
| 134 | create mode 100644 include/boost/simple/twice.hpp |
| 135 | create mode 100644 test/Jamfile.v2 |
| 136 | create mode 100644 test/twice_test.cpp |
| 137 | }}} |
| 139 | Since the test passed (as indicated by the {{{**passed**}}} message), we will also push these changes up to the public repository: |
| 140 | |
| 141 | {{{ |
| 142 | >git push |
| 143 | Counting objects: 10, done. |
| 144 | Delta compression using up to 2 threads. |
| 145 | Compressing objects: 100% (6/6), done. |
| 146 | Writing objects: 100% (9/9), 817 bytes, done. |
| 147 | Total 9 (delta 0), reused 0 (delta 0) |
| 148 | To git@github.com:Beman/simple.git |
| 149 | 9356e19..3a3a654 master -> master |
| 150 | }}} |
| 151 | |
| 152 | Your output, of course, will show your !GitHub account name rather than mine. |