Commit 0bd7ff37 authored by Vermaat's avatar Vermaat
Browse files

Merge branch 'remotes'

parents 2663c65b a0100341
......@@ -297,8 +297,6 @@ $ git pull ==> $ git fetch origin
% todo: create gitlab project, clone gitlab project
......@@ -311,9 +309,10 @@ $ git pull ==> $ git fetch origin
Zuotian Tatum
{\bf Git Introduction Course}
Git and remote repositories practical.
\subsubsection*{Add your repository to GitLab.}
Now you have a nice repository, of course you want to share it on GitLab.
Go to GitLab and create a new project.
\item \emph{Question:} What is the repository URL for your new project?
Add a remote for your GitLab repository.
Push your branch(es) to GitLab.
\item \emph{Question:} Can you see your repository content in the GitLab web
\subsubsection*{Clone an existing repository from GitLab.}
There already are some nice repositories on GitLab! Pick one (e.g., from the
person sitting next to you, or browse the public repositories using the globe
icon in the top right).
Create a local clone of the repository you picked.
\item \emph{Question:} In the resulting repository, what remotes and
branches exist?
\subsubsection*{For experts: create a merge request.}
If you are interested, here are some additional GitLab features you can
use. Fork an existing project, implement a feature, and submit a merge
Find an interesting project and click the \emph{Fork} button. This makes a
copy of the project under your own user, on GitLab.
Clone the project (your fork) to your local machine.
Create a new branch and implement some feature in it. Make sure to commit
Push your new branch to GitLab (your fork of the project).
If you now go to your GitLab dashboard (homepage), you'll see a green button
to create a merge request. From the merge request, the owner of the original
project can directly merge your changes using only the web interface.
\emph{Hint:} You can also start a discussion or do some code review inside the
merge request.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment