diff options
| author | Owen Jacobson <owen.jacobson@grimoire.ca> | 2013-01-16 14:46:55 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen.jacobson@grimoire.ca> | 2013-01-16 14:46:55 -0500 |
| commit | f22a065c1f0b9bed89b99b7e2c70b537eb151d96 (patch) | |
| tree | c8c91e15ad6cf073df7aaee6c89d312d2e4c03ee /wiki/git | |
| parent | d40428771966b36b40b9d5177c1240567b0c566d (diff) | |
"The upstream of ____" has a name.
Diffstat (limited to 'wiki/git')
| -rw-r--r-- | wiki/git/survival.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wiki/git/survival.md b/wiki/git/survival.md index 3ac1abe..db601f5 100644 --- a/wiki/git/survival.md +++ b/wiki/git/survival.md @@ -9,6 +9,9 @@ will screw you. Here are a few things I've picked up that have saved my bacon. opposite operation is `git fetch`. (`git pull` is equivalent to `git fetch` followed by `git merge`, more or less). * [Git configuration values don't always have the best defaults](config). +* The upstream branch of `foo` is `foo@{u}`. The upstream branch of your + checked-out branch is `HEAD@{u}` or `@{u}`. This is documented in `git help + revisions`. * You probably don't want to use a merge operation (such as `git pull`) to integrate upstream changes into topic branches. The resulting history can be very confusing to follow, especially if you integrate upstream changes @@ -42,7 +45,7 @@ will screw you. Here are a few things I've picked up that have saved my bacon. git fetch git checkout $(git merge-base origin/master foo) -b foo-cleaner-history git checkout -p foo -- paths/to/files - # pick out changes that form a coherent commit + # pick out changes from the presented patch that form a coherent commit # repeat 'git checkout -p foo --' steps for related files to build up # the new commit git commit |
