Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
git-seminar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
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
Scientific Computing
education
git-seminar
Commits
6e22e0c7
Verified
Commit
6e22e0c7
authored
6 years ago
by
ck85nori
Browse files
Options
Downloads
Patches
Plain Diff
gets rid of outdated drafts
parent
6d1d4a75
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
0-Intro.md
+0
-118
0 additions, 118 deletions
0-Intro.md
index.html
+0
-70
0 additions, 70 deletions
index.html
with
0 additions
and
188 deletions
0-Intro.md
deleted
100644 → 0
+
0
−
118
View file @
6d1d4a75
# Introduction to git - a powerful version control system
## block structure
-
Why git?
-
poll from registration
-
other points from our list
-
git installation hands on
-
git on the command line
-
navigate manipulate on cli
-
ls, pwd, cd, mv, rm, cp, mkdir, rmdir
-
short break (optional)
-
(like) try git on beamer (closed laptops)
-
try git would be 1.1 to 1.9
-
init
-
status
-
add
-
commit
-
log (metadata only)
-
short break (optional)
-
hands on - created project
-
multiple commits
-
multiple files
-
diff
-
log (with patch)
-
wrap up hands on
-
problems that occurred
-
conclusion
## Why git?
### Why would you want to use a VCS, e.g. git?
-
Summary of answers to question from registration.
-
git helps you to keep an overview of a project.
### Thoughts from the net “Have you ever:”
-
Made a change to code, realised it was a mistake and wanted to revert back?
-
Lost code or had a backup that was too old?
-
Had to maintain multiple versions of a product?
-
Wanted to see the difference between two (or more) versions of your code?
-
Wanted to prove that a particular change broke or fixed a piece of code?
-
Wanted to review the history of some code?
-
Wanted to submit a change to someone else's code?
-
Wanted to share your code, or let other people work on your code?
-
Wanted to see how much work is being done, and where, when and by whom?
-
Wanted to experiment with a new feature without interfering with working code?
In these cases, and no doubt others, a version control system should make your life easier.
To misquote a friend: A civilised tool for a civilised age.
by si618 at
[
https://stackoverflow.com/a/1408464
](
https://stackoverflow.com/a/1408464
)
## git installation hands on
[
instructions
](
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
)
### installation on ubuntu
We will use the version from the git ppa:
```
bash
sudo
apt-get
install
ppa-purge
sudo
add-apt-repository ppa:git-core/ppa
sudo
apt-get update
sudo
apt-get dist-upgrade
sudo
apt-get
install
git
```
### installation on windows
-
[
Download
](
https://git-scm.com/download/win
)
-
choose 64 bit
-
portable if you do not have admin rights
-
default install options look OK
-
Git Bash
-
Windows Explorer context menue has
*Git Bash Here*
and
*Git GUI Here*
options
-
Windows credential window will pop up when accessing remotes with authentication
### navigate and manipulate on cli
-
pwd
-
ls
-
cd
-
mv
-
rm
-
cp
-
mkdir
-
rmdir
### configure git
```
bash
git config
--global
user.name
"Your Name"
git config
--global
user.email
"your.name@idiv.de"
```
-
eventually additionally configuration for windows/linux/mac stuff
-
line break configuration done during install for windows
-
eventually mention difference global local
## short break (optional)
## show try git like tutorial on beamer (closed laptops)
-
try git would be 1.1 to 1.9
-
create project directory
-
init
-
status
-
add
-
commit
-
log (metadata only)
## short break (optional)
## hands on - created project
-
multiple commits
-
multiple files
-
diff
-
log (with patch)
-
test this with a windows and mac machine to see things like editor, linebreaks, etc.
## wrap up hands on
-
problems that occurred
-
conclusion
This diff is collapsed.
Click to expand it.
index.html
deleted
100644 → 0
+
0
−
70
View file @
6d1d4a75
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"author"
content=
"Dirk Sarpe and Christian Krause"
/>
<title>
git basics
</title>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<link
rel=
"stylesheet"
href=
"reveal.js/css/reveal.css"
/>
<link
rel=
"stylesheet"
href=
"reveal.js/lib/css/zenburn.css"
/>
<style
type=
"text/css"
>code
{
white-space
:
pre
;}
</style>
<link
rel=
"stylesheet"
href=
"reveal.js/css/theme/black.css"
id=
"theme"
/>
<link
rel=
"stylesheet"
href=
"css/ribbon.css"
/>
</head>
<body>
<!-- start of slides -->
<div
class=
"reveal"
>
<div
class=
"slides"
>
<section
id=
"title"
data-markdown
>
# git seminar
1. [for beginner-level git users](basics.html)
</section>
</div>
</div>
<!-- ribbon -->
<div
class=
"ribbon-wrapper right"
>
<div
class=
"ribbon"
>
<a
href=
"https://git.idiv.de/sc/edu/git-seminar"
>
edit
</a>
</div>
</div>
<!-- reveal.stuff -->
<script
src=
"reveal.js/lib/js/head.min.js"
></script>
<script
src=
"reveal.js/js/reveal.js"
></script>
<script>
Reveal
.
initialize
({
controls
:
true
,
progress
:
true
,
slideNumber
:
true
,
history
:
true
,
center
:
true
,
keyboard
:
true
,
maxScale
:
1.5
,
slideNumber
:
false
,
theme
:
Reveal
.
getQueryHash
().
theme
,
transition
:
Reveal
.
getQueryHash
().
transition
||
'
default
'
,
dependencies
:
[
{
src
:
'
reveal.js/lib/js/classList.js
'
,
condition
:
function
()
{
return
!
document
.
body
.
classList
;
}
},
{
src
:
'
reveal.js/plugin/zoom-js/zoom.js
'
,
async
:
true
,
condition
:
function
()
{
return
!!
document
.
body
.
classList
;
}
},
{
src
:
'
reveal.js/plugin/notes/notes.js
'
,
async
:
true
,
condition
:
function
()
{
return
!!
document
.
body
.
classList
;
}
},
{
src
:
'
reveal.js/plugin/markdown/marked.js
'
,
condition
:
function
()
{
return
!!
document
.
querySelector
(
'
[data-markdown]
'
);
}
},
{
src
:
'
reveal.js/plugin/markdown/markdown.js
'
,
condition
:
function
()
{
return
!!
document
.
querySelector
(
'
[data-markdown]
'
);
}
},
{
src
:
'
reveal.js/plugin/highlight/highlight.js
'
,
async
:
true
,
callback
:
function
()
{
hljs
.
initHighlightingOnLoad
();
}
},
]
});
</script>
</body>
</html>
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