diff options
Diffstat (limited to '_posts')
| -rw-r--r-- | _posts/2011-02-17-fork-a-repo.markdown | 12 | ||||
| -rw-r--r-- | _posts/2011-02-18-be-social.markdown | 14 |
2 files changed, 18 insertions, 8 deletions
diff --git a/_posts/2011-02-17-fork-a-repo.markdown b/_posts/2011-02-17-fork-a-repo.markdown index 0ae782d..8cc493a 100644 --- a/_posts/2011-02-17-fork-a-repo.markdown +++ b/_posts/2011-02-17-fork-a-repo.markdown @@ -65,20 +65,20 @@ You’ve successfully forked a repo, but get a load of these other cool thin <h4 class="compressed">What is the difference between fetch and pull?</h4> <div class="more-content"> <p> - There are two ways to get changes from a remote repo or branch: <code>fetch</code> and <code>pull</code>. While they might seem similar at first, there are distinct differences you should consider. + There are two ways to get commits from a remote repo or branch: <code>fetch</code> and <code>pull</code>. While they might seem similar at first, there are distinct differences you should consider. </p> <h4>Pull</h4> <pre class="terminal bootcamp"> - <span class="codeline">$ git pull upstream<span>Pulls changes from upstream and adds them to the local repo</span></span> + <span class="codeline">$ git pull upstream<span>Pulls commits from 'upstream' and adds them to the local repo</span></span> </pre> - <p>When you use <code>pull</code>, Git tries to automatically do your work for you. It is context sensitive, so Git will apply any pulled changes to the branch you are currently working in. One thing to keep in mind is that <code>pull</code> automatically applies the changes without letting you review them first. If you don't closely manage your branches you may run into frequent conflicts.</p> + <p>When you use <code>pull</code>, Git tries to automatically do your work for you. It is context sensitive, so Git will merge any pulled commits into the branch you are currently working in. One thing to keep in mind is that <code>pull</code> automatically merges the commits without letting you review them first. If you don’t closely manage your branches you may run into frequent conflicts.</p> <h4>Fetch/Merge</h4> <pre class="terminal bootcamp"> - <span class="codeline">$ git fetch upstream<span>Fetches any new changes from the original repo</span></span> - <span class="codeline">$ git merge upstream/master<span>Merges any changes fetched into your working files</span></span> + <span class="codeline">$ git fetch upstream<span>Fetches any new commits from the original repo</span></span> + <span class="codeline">$ git merge upstream/master<span>Merges any commits fetched into your working files</span></span> </pre> - <p>When you <code>fetch</code>, Git downloads any changes from the specified branch, but does not apply them to your files. This is very useful if you need to keep your repo up to date but are working on something that might break if your files are updated. To apply the changes, you use <code>merge</code>. This combines the specified branches and prompts you if there are any conflicts.</p> + <p>When you <code>fetch</code>, Git gathers any commits from the target branch that do not exist in your current branch and stores them in your local repo. However, it does not merge them with your current branch. This is particularly useful if you need to keep your repo up to date but are working on something that might break if you update your files. To integrate the commits into your master branch, you use <code>merge</code>. This combines the specified branches and prompts you if there are any conflicts.</p> </div> </div> diff --git a/_posts/2011-02-18-be-social.markdown b/_posts/2011-02-18-be-social.markdown index f83cbc7..14f55f8 100644 --- a/_posts/2011-02-18-be-social.markdown +++ b/_posts/2011-02-18-be-social.markdown @@ -64,14 +64,24 @@ At some point you may want to stay up-to-date with a specific project. We’ You’ve done some of the most basic social interaction GitHub has to offer, but don’t stop there! Check out these other social features: -- <span class="step-title">Pull requests</span> +- <span class="step-title">Pull Requests</span> - If you are hoping to contribute back to the original fork, you can send the original author a [pull request](/pull-requests/). + <img src="/images/bootcamp/bootcamp_4_pull_requests.jpg" width="558" height="100" alt="Pull Requests" class="bootcamp top-margin"/> + + You may find yourself wanting to contribute to someone else’s project, whether to add features or to fix bugs. After making changes, you can let the original author know about them by sending a [pull request](/pull-requests/). - <span class="step-title">Issues</span> + + <img src="/images/bootcamp/bootcamp_4_issues.jpg" width="558" height="131" alt="Issues" class="bootcamp top-margin"/> When you are collaborating on a project with someone, you some times come across problems that need to be fixed. To help you keep track of these problems, each GitHub repo has a section called Issues. For an example, check out the [issues](https://github.com/octocat/Spoon-Knife/issues) for the Spoon-Knife repo. + +- <span class="step-title">Organizations</span> + <img src="/images/bootcamp/bootcamp_4_org.jpg" width="558" height="200" alt="Organizations" class="bootcamp top-margin"/> + + Have you found yourself wishing you could collaborate with multiple developers on one project? You can manage everyone with Organizations! With an organization you can establish teams with special permissions, have a public organization profile, and keep track of activity within the organization. + ##<span>Lastly:</span> Celebrate Congratulations! You are quite the socialite. What do you want to do next? |
