Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think <strong>git fetch</strong> is what your looking for. </p> <p>It will pull the changes and objects without committing them to your local repo's index. </p> <p>They can be merged later with <strong>git merge</strong>. </p> <p><a href="http://www.kernel.org/pub/software/scm/git/docs/git-fetch.html" rel="noreferrer">Man Page</a></p> <p>Edit: Further Explination</p> <p>Straight from the <strong>Git- SVN Crash Course</strong> <a href="http://git.or.cz/course/svn.html" rel="noreferrer">link</a></p> <blockquote> <p>Now, how do you get any new changes from a remote repository? You fetch them: </p> <pre><code>git fetch http://host.xz/path/to/repo.git/ </code></pre> <p>At this point they are in your repository and you can examine them using:</p> <pre><code>git log origin </code></pre> <p>You can also diff the changes. You can also use <strong>git log HEAD..origin</strong> to see just the changes you don't have in your branch. Then if would like to merge them - just do:</p> <pre><code>git merge origin </code></pre> <p>Note that if you don't specify a branch to fetch, it will conveniently default to the tracking remote.</p> </blockquote> <p>Reading the man page is honestly going to give you the best understanding of options and how to use it. </p> <p>I'm just trying to do this by examples and memory, I don't currently have a box to test out on. You should look at:</p> <pre><code>git log -p //log with diff </code></pre> <p>A fetch can be undone with <strong>git reset --hard</strong> (<a href="http://git-scm.com/docs/git-reset" rel="noreferrer">link</a>) , however all uncommitted changes in your tree will be lost as well as the changes you've fetched.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload