Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Git course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
courses
Git course
Commits
0bd7ff37
Commit
0bd7ff37
authored
11 years ago
by
Vermaat
Browse files
Options
Downloads
Plain Diff
Merge branch 'remotes'
parents
2663c65b
a0100341
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
remotes/remotes.tex
+3
-4
3 additions, 4 deletions
remotes/remotes.tex
remotes/remotes_handouts.tex
+90
-0
90 additions, 0 deletions
remotes/remotes_handouts.tex
with
93 additions
and
4 deletions
remotes/remotes.tex
+
3
−
4
View file @
0bd7ff37
...
...
@@ -297,8 +297,6 @@ $ git pull ==> $ git fetch origin
\end
{
itemize
}
\end
{
frame
}
% todo: create gitlab project, clone gitlab project
\section
{
Questions?
}
\lastpagetemplate
\begin
{
frame
}
...
...
@@ -311,9 +309,10 @@ $ git pull ==> $ git fetch origin
Zuotian Tatum
% https://www.atlassian.com/git
\end
{
center
}
\vfill
\permfoot
{
http:
//
git
-
scm.com
/
book
}
\\
\permfoot
{
https:
//
www.atlassian.com
/
git
}
\end
{
frame
}
\end
{
document
}
This diff is collapsed.
Click to expand it.
remotes/remotes_handouts.tex
0 → 100644
+
90
−
0
View file @
0bd7ff37
\documentclass
{
article
}
\usepackage
{
fullpage
}
\frenchspacing
\setlength
{
\parindent
}{
0pt
}
\pagestyle
{
empty
}
\begin{document}
\begin{center}
{
\bf
Git Introduction Course
}
Git and remote repositories practical.
\end{center}
\bigskip
\subsubsection*
{
Add your repository to GitLab.
}
Now you have a nice repository, of course you want to share it on GitLab.
\bigskip
Go to GitLab and create a new project.
\begin{itemize}
\item
\emph
{
Question:
}
What is the repository URL for your new project?
\end{itemize}
\bigskip
Add a remote for your GitLab repository.
\bigskip
Push your branch(es) to GitLab.
\begin{itemize}
\item
\emph
{
Question:
}
Can you see your repository content in the GitLab web
interface?
\end{itemize}
\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).
\bigskip
Create a local clone of the repository you picked.
\begin{itemize}
\item
\emph
{
Question:
}
In the resulting repository, what remotes and
branches exist?
\end{itemize}
\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
request.
\bigskip
Find an interesting project and click the
\emph
{
Fork
}
button. This makes a
copy of the project under your own user, on GitLab.
\bigskip
Clone the project (your fork) to your local machine.
\bigskip
Create a new branch and implement some feature in it. Make sure to commit
this.
\bigskip
Push your new branch to GitLab (your fork of the project).
\bigskip
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.
\bigskip
\emph
{
Hint:
}
You can also start a discussion or do some code review inside the
merge request.
\end{document}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment