105 captures
18 Feb 2013 - 09 Dec 2025
Feb MAR Apr
30
2015 2016 2017
success
fail

About this capture

COLLECTED BY

Organization: Internet Archive

The Internet Archive discovers and captures web pages through many different web crawls. At any given time several distinct crawls are running, some for months, and some every day or longer. View the web archive through the Wayback Machine.

Collection: Live Web Proxy Crawls

Content crawled via the Wayback Machine Live Proxy mostly by the Save Page Now feature on web.archive.org.

Liveweb proxy is a component of Internet Archive’s wayback machine project. The liveweb proxy captures the content of a web page in real time, archives it into a ARC or WARC file and returns the ARC/WARC record back to the wayback machine to process. The recorded ARC/WARC file becomes part of the wayback machine in due course of time.
TIMESTAMPS

The Wayback Machine - http://web.archive.org/web/20160330193557/https://help.github.com/articles/fetching-a-remote/
 


GitHub Help






Fetching a remote




mac  

windows  

linux  

all  






When working with other people's repositories, there are a few basic Git commands to remember:


git clone

git fetch

git merge

git pull


These commands are very useful when interacting with a remote repository. clone and fetch download remote code from a repository's remote URL to your local computer, merge is used to merge different people's work together with yours, and pull is a combination of fetch and merge.

We'll go in-depth on these commands below.

Clone


To grab a complete copy of another user's repository, use git clone like this:
git clone https://github.com/USERNAME/REPOSITORY.git
# Clones a repository to your computer

You can choose from several different URLs when cloning a repository. While logged in to GitHub, these URLs are available below the repository details:

Remote url list
When you run git clone, the following actions occur:


A new folder called repo is made

It is initialized as a Git repository

A remote named origin is created, pointing to the URL you cloned from

All of the repository's files and commits are downloaded there

The default branch (usually called master) is checked out


For every branch foo in the remote repository, a corresponding remote-tracking branch refs/remotes/origin/foo is created in your local repository. You can usually abbreviate such remote-tracking branch names to origin/foo.

Fetch


Use git fetch to retrieve new work done by other people. Fetching from a repository grabs all the new remote-tracking branches and tags without merging those changes into your own branches.

If you already have a local repository with a remote URL set up for the desired project, you can grab all the new information by using git fetch *remotename* in the terminal:
git fetch remotename
# Fetches updates made to a remote repository

Otherwise, you can always add a new remote and then fetch.

Merge


Merging combines your local changes with changes made by others.

Typically, you'd merge a remote-tracking branch (i.e., a branch fetched from a remote repository) with your local branch:
git merge remotename/branchname
# Merges updates made online with your local work

Pull


git pull is a convenient shortcut for completing both git fetch and git mergein the same command:
git pull remotename branchname
# Grabs online updates and merges them with your local work

Because pull performs a merge on the retrieved changes, you should ensure that your local work is committed before running the pull command. If you run into a merge conflict you cannot resolve, or if you decide to quit the merge, you can use git merge --abort to take the branch back to where it was in before you pulled.

Further reading



"Working with Remotes" from the Pro Git book

GitGuys: Adding and Removing Remote Branches

 



Contact a human  




Article versions



GitHub.com

GitHub Enterprise 2.5  

GitHub Enterprise 2.4  

GitHub Enterprise 2.3  

GitHub Enterprise 2.2  

GitHub Enterprise 2.1  









© 2016 GitHub Inc. All rights reserved.  


Terms of Service

Privacy

Security

Support