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
17445a20
Verified
Commit
17445a20
authored
6 years ago
by
ck85nori
Browse files
Options
Downloads
Patches
Plain Diff
splits setup in two parts
one slide dedicated to editors
parent
b91e1acb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
basics.html
+18
-6
18 additions, 6 deletions
basics.html
with
18 additions
and
6 deletions
basics.html
+
18
−
6
View file @
17445a20
...
@@ -344,8 +344,8 @@
...
@@ -344,8 +344,8 @@
```
```
</section>
</section>
<section
id=
"setup-git"
data-markdown
>
<section
id=
"setup-git
-1
"
data-markdown
>
## git setup
## git setup
#1
```bash
```bash
# configure your identity
# configure your identity
...
@@ -355,17 +355,29 @@
...
@@ -355,17 +355,29 @@
# show colors
# show colors
git config --global color.ui auto
git config --global color.ui auto
# editor
git config --global core.editor emacs
# configure aliases
# configure aliases
git config --global alias.unstage 'reset HEAD --'
git config --global alias.unstage 'reset HEAD --'
git config --global alias.lol \
git config --global alias.lol \
'log --graph --decorate --oneline --all'
'log --graph --decorate --oneline --all'
```
```
</section>
<section
id=
"setup-git-2"
data-markdown
>
## git setup #2
```bash
# editor
git config --global core.editor emacs
# WINDOWS ONLY: let git handle line endings
git config --global core.autocrlf true
```
notes:
notes:
- editor: talk about line endings
- talk about line endings
- maintainers may reject contributions because of line endings
- difference between git config and editor config
- you can have fine grained control over this with gitattributes(5)
</section>
</section>
</section>
</section>
...
...
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