John Blischak Use the term bookmark instead of alias when referring to origin.  about 9 years ago

Commit id: 6a2fab845aac81cf6a978fda733729c7b5f14627

deletions | additions      

       

The key to this is the URL that GitHub assigns your newly created remote repository.  It will have the form \verb|https://github.com/username/reponame.git|, e.g. \verb|https://github.com/scientist123/thesis.git|.  In order to link the local thesis repository on your computer to the remote repository you just created, in your local repository you need to tell Git the URL of the remote repository using the command \verb|git remote add|.  Use the alias name "origin" so that you do not have to type out the full URL in the future (this is the default name for a remote repository, but you could use another name if you liked).  \begin{lstlisting}  $ git remote add origin https://github.com/scientist123/thesis.git  \end{lstlisting}  The name "origin" is a bookmark for the remote repository so that you do not have to type out the full URL every time you sync your changes (this is the default name for a remote repository, but you could use another name if you liked).  Send your code to GitHub using the command \verb|git push| (Figure 2).  \begin{lstlisting}