Changes between Version 22 and Version 23 of WorkingWithGit
- Timestamp:
- Aug 21, 2016, 7:17:26 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkingWithGit
v22 v23 175 175 Note that L1 and L2 have been modified by this operation; their commit IDs changed because of that. This new state can be pushed back to origin without the need for a merge commit, and the history graph will stay linear. '''We recommend that all developers rebase their changes rather than merge when conflicts occur during pushing.''' 176 176 177 '''T.B.D.:''' See config setting for {{{branch.autosetuprebase}}} [#Initialsetup above]. 178 179 177 180 ==== Putting the background knowledge into production ==== 178 181 First, get all new commits from the remote repository using `git fetch <remote-name>`, where `<remote-name>` identifies the repository from which you want to fetch and defaults to "origin": … … 193 196 194 197 '''Warning:''' `git pull` without the `--rebase` flag is a shorthand for `git fetch && git merge origin/master`, which will automatically create a merge commit if it thinks that's necessary. 195 196 '''T.B.D.:''' See config setting for {{{branch.autosetuprebase}}} [#Initialsetup above].197 198 198 199