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: episodes/05-pulling_pushing.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ in sync.
42
42
{alt='Git collaborative'}
43
43
44
44
-`push` only operates on your current branch. If you want to push another
45
-
branch, you have to `checkout` that branch first.
45
+
branch, you have to `switch` to that branch first.
46
46
- If the upstream branch has changes you do not have in the local branch, the
47
47
command will fail, requesting you to pull those changes first.
48
48
@@ -144,7 +144,7 @@ branch 'spicy' set up to track 'origin/spicy'.
144
144
see how your local and remote branch compare in terms of commit history.
145
145
- It's best to make sure your repository is in a clean state with no staged or unstaged
146
146
changes.
147
-
- If the local and upstream branches have diverged - have different commit history - the
147
+
- If the local and upstream branches have diverged -- have different commit history -- the
148
148
command will attempt to merge both. If there are conflicts, you will need deal with
149
149
them in the same way described above.
150
150
- You can get a new branch that exists only in `origin` directly with `git switch BRANCH_NAME` which will automatically create a local branch with the same name
0 commit comments