![]() If you are not satisfied with your changes, you can keep changing your files. Once you have chosen which files to include in your next commit using git add, it is a good practice to review this list using Additionally, it lists the commands to revert local uncommitted modifications ( git checkout - ) and to remove files from the next commit, but preserve the modifications in your working copy ( git reset HEAD ). Git status gives you an overview of the current index and your working copy. Git uses a staging area called "index" that allows you to mark changes for inclusion in the next commit. (A list of our repositories is available at FAQ/GitHubMigration#repositories.)Ī fundamental difference between Subversion and Git working copies is that svn commit by default commits all changes in your working copy, but git commit by default commits none. Local Portfile Repositories (especially step 5) in the documentation for instructions on how to handle a local repository ![]() If you use this as your working local repository check 4.6. $ git clone 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. GitHub allows cloning over HTTPS or SSH: Obtaining a local copy of a Git repository is called "cloning" because you usually end up with a carbon copy of the source repository. Also check that the Trac preferences have the correct email address. $ git config user.email get proper attribution for your commits on GitHub, please add and verify this email address in the GitHub settings. You can override your global settings by modifying /path/to/MacPorts/repo/.git/config: ![]() $ git config -global user.email you're a MacPorts committer, you should use your MacPorts email address while working in MacPorts repositories. $ git config -global user.name 'Foo Barbaz' You will likely use your name and a personal email address for most Git projects, so you can add them to $HOME/.gitconfig: Git commits identify authors and committers by name and email address.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |