Changes between Version 6 and Version 7 of WorkingWithGit


Ignore:
Timestamp:
Aug 20, 2016, 8:16:10 PM (8 years ago)
Author:
neverpanic (Clemens Lang)
Comment:

Add pushing.

Legend:

Unmodified
Added
Removed
Modified
  • WorkingWithGit

    v6 v7  
    7474which prompts you for the commit message. See the [#commitmessages section on commit messages in git] for more information on git conventions and expectations in commit messages.
    7575
     76Because of Git's distributed nature, a commit on your local machine is not immediately available on the central server, like it was the case with Subversion. This means that you can continue to prepare further changes in additional commits before you publish your changes as a set. In fact, it is a very common practice in Git to do many small changes that are logically consistent in themselves and then publish them in one step.
     77
     78If you have commit access, you can publish your commits using `git push <remote-name> <branch-name>`. `<remote-name>` is the name of the repository to which you want to push. The most common push target is the location you initially cloned, which is automatically named `origin`. `<branch-name>` is the name of the branch you want to push. The Git equivalent to Subversion's `trunk` is called `master`. In most cases you do not need to specify `<remote-name>` or `<branch-name>`:
     79{{{
     80git push
     81}}}
     82
    7683
    7784== Common `git` tasks & notes about MacPorts' Subversion export ==