Changes between Version 12 and Version 13 of WorkingWithGit
- Timestamp:
- Aug 20, 2016, 9:22:05 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkingWithGit
v12 v13 83 83 }}} 84 84 85 Note that the push will fail if the remote repository has new changes. Contrary to Subversion, it does not matter whether your changes conflict with the remote ones. If this happens, you must update your local working copy as described in the [#updating section on fetch the latest changes] and re-try the push. 86 85 87 86 88 == Common `git` tasks & notes about MacPorts' Subversion export == 87 === Fetching the latest changes === 89 === Fetching the latest changes === #updating 88 90 Git's equivalent to `svn update` is a little more complicated due to Git's distributed nature. Most of the complexity is not visible if you do not have commits in your working copy that have not been pushed yet. If both the local and the remote repository have changes (git calls them "diverged"), you will run into one of Git's core principles: Every commit has (at least) one parent commit, i.e. the commit history forms a directed acyclic graph. 89 91