You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/02-git-basics/sections/remotes.asc
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,18 @@ If your current branch is set up to track a remote branch (see the next section
127
127
This may be an easier or more comfortable workflow for you; and by default, the `git clone` command automatically sets up your local `master` branch to track the remote `master` branch (or whatever the default branch is called) on the server you cloned from.
128
128
Running `git pull` generally fetches data from the server you originally cloned from and automatically tries to merge it into the code you're currently working on.
129
129
130
+
[NOTE]
131
+
====
132
+
From git version 2.27 onward, `git pull` will give a warning if the `pull.rebase` variable is not set.
133
+
Git will keep warning you until you set the variable.
134
+
135
+
If you want the default behavior of git (fast-forward if possible, else create a merge commit):
0 commit comments