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
<b><ins>Your remote branch has been rebased and you want changes from rebased remote branch on your local</ins></b> <br>
67
97
1.) `git fetch origin` - Updates your local information about the remote branches without changing your working branch <br>
68
98
2.) `git reset --hard origin/your-branch-name` - `Forces your local branch to match the remote branch exactly, discarding any local changes or commits that differ from the remote branch`
69
99
70
-
<b><ins>Troubleshooting Git</ins></b><br/>
100
+
## Troubleshooting Git</ins></b><br>
71
101
72
102
<b>Issue #1</b><br>
73
103
After performing <b>git pull</b> you get this error:
@@ -77,9 +107,14 @@ After performing <b>git pull</b> you get this error:
77
107
78
108
<b>Issue #2</b><br/>
79
109
After performing a ```git push -f``` or ```git push -u origin your-feature-branch``` you get this:<br>
80
-
```the upstream branch of your current branch does not match the name of your current branch```<br><br>
81
-
<b>Solution:</b> <br>
110
+
111
+
```
112
+
the upstream branch of your current branch does not match the name of your current branch
113
+
```
114
+
115
+
<b>Explaination:</b> <br>
82
116
Your local and remote branch have different names<br><br>
117
+
83
118
<b>2 possible solutions</b><br>
84
119
1.) rename your <b>local branch</b> to same name as <b>remote branch</b><br/>
85
120
2.) delete the <b>remote branch</b> and push again
0 commit comments