Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
systems:git_setup_and_configuration [2017/09/26 12:20] smayr [Setup Local Repo to Push to BitBucket Repo using SourceTree] |
systems:git_setup_and_configuration [2018/06/18 14:39] (current) smayr [Synchronize Changes] |
||
---|---|---|---|
Line 208: | Line 208: | ||
$ git pull # Downloads bookmark history and incorporates changes | $ git pull # Downloads bookmark history and incorporates changes | ||
| | ||
+ | **Fetch vs. Pull:** Do a '' | ||
+ | |||
+ | Basically a '' | ||
+ | |||
+ | Therefore, instead of a '' | ||
+ | |||
+ | See: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | Get any changes in the remote branch since the last pull: | ||
+ | $ git fetch | ||
+ | $ git diff ...origin (or $ git diff origin/ | ||
=== Merge or Rebase === | === Merge or Rebase === | ||
Merge the '' | Merge the '' | ||
Line 259: | Line 272: | ||
== Setup Local Repo to Push to BitBucket Repo using SourceTree == | == Setup Local Repo to Push to BitBucket Repo using SourceTree == | ||
- | | + | Install SourceTree and add BitBucket account: |
- | # On the local repo, go to Settings and change remote origin address from '' | + | |
+ | | ||
+ | # On the SourceTree | ||
+ | |||
+ | Create an SSH key | ||
+ | # On SourceTree, select Tools > Create or Import SSH Keys. | ||
+ | # In PuTTY Key Generator, generate a 2048-bit SSH-2 RSA key, then: | ||
+ | * Copy the public key. | ||
+ | * Save the private key locally. | ||
+ | * Save the public key. | ||
+ | |||
+ | Install Private Key on Pageant (PuTTY Authentication Agent) | ||
+ | # Run Pageant or open from icon tray. | ||
+ | # Add private SSH key, by clicking on Add Key button, then entering the passphrase. | ||
+ | |||
+ | Add Public Key to BitBucket | ||
+ | # In SourceTree, open the PuTTY Key Generator from Tools > Create or Import SSH Keys. | ||
+ | Click Load and select the private key file. | ||
+ | # Copy the public key. | ||
+ | # On BitBucket Account Settings (user avatar), select SSH keys, then Add Key. | ||
+ | # Enter label " | ||
+ | # Paste public key to Key field, and save. | ||
+ | |||
+ | === References === | ||
+ | * [[https:// | ||
+ | |||
+ | == Git Flow == | ||
+ | Organizing your repository to use git flow. | ||
+ | {{ : | ||
+ | Author: Vincent Driessen | | ||
+ | Original blog post: http:// | ||
+ | License: Creative Commons BY-SA | ||
+ | * Use Semantic Versioning: [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
== References == | == References == |