|
194 | 194 | that is tracked by whatever branch you are currently in. I personally don't much
|
195 | 195 | like this command - I prefer running <code>fetch</code> and <code>merge</code>
|
196 | 196 | seperately. Less magic, less problems. However, if you like this idea, you
|
197 |
| - can read about it in more detail in the. |
| 197 | + can read about it in more detail in the |
198 | 198 | <a target="new" href="http://www.kernel.org/pub/software/scm/git/docs/git-pull.html">official docs</a>.
|
199 | 199 | </p>
|
200 | 200 |
|
|
280 | 280 | </pre>
|
281 | 281 |
|
282 | 282 | <p>Pretty easy. Now if someone clones that repository they will get exactly
|
283 |
| - what I have committed and all of it's history.</p> |
| 283 | + what I have committed and all of its history.</p> |
284 | 284 |
|
285 | 285 | <p>What if I have a topic branch like the 'erlang' branch we created earlier
|
286 | 286 | and I just want to share that? You can just push that branch instead.
|
|
296 | 296 | * [new branch] erlang -> erlang
|
297 | 297 | </pre>
|
298 | 298 |
|
299 |
| - <p>Now when people clone or fetch from that repository, they'll get a 'erlang' |
| 299 | + <p>Now when people clone or fetch from that repository, they'll get an 'erlang' |
300 | 300 | branch they can look at and merge from. You can push any branch to any
|
301 | 301 | remote repository that you have write access to in this way. If your branch
|
302 | 302 | is already on the server, it will try to update it, if it is not, Git will
|
|
307 | 307 | at the same time, you both do commits, then she pushes and then you try to
|
308 | 308 | push, Git will by default not allow you to overwrite her changes. Instead,
|
309 | 309 | it basically runs <code>git log</code> on the branch you're trying to push and
|
310 |
| - makes sure it can see the current tip of the servers branch in your pushes |
| 310 | + makes sure it can see the current tip of the server's branch in your push's |
311 | 311 | history. If it can't see what is on the server in your history, it concludes
|
312 | 312 | that you are out of date and will reject your push. You will rightly have to
|
313 | 313 | fetch, merge then push again - which makes sure you take her changes into
|
|
0 commit comments