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
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Maximilian Konzack
git-seminar
Commits
885f57d2
Verified
Commit
885f57d2
authored
6 years ago
by
ck85nori
Browse files
Options
Downloads
Patches
Plain Diff
improves platform specific setup section
parent
23820c80
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
+13
-6
13 additions, 6 deletions
basics.html
with
13 additions
and
6 deletions
basics.html
+
13
−
6
View file @
885f57d2
...
@@ -446,18 +446,25 @@
...
@@ -446,18 +446,25 @@
## git setup #2
## git setup #2
```bash
```bash
# editor
#
command line
editor
git config --global core.editor
emacs
git config --global core.editor
nano
# WINDOWS ONLY: let git handle line endings
# Linux GNOME / KDE
git config --global core.editor gedit
git config --global core.editor kate
# Windows
git config --global core.editor notepad
git config --global core.autocrlf true
git config --global core.autocrlf true
```
```
notes:
notes:
- talk about line endings
### line endings
- explain the difference: Windows CRLF, everyone else LF, some
accept only LF
- maintainers may reject contributions because of line endings
- maintainers may reject contributions because of line endings
-
difference between git config and editor config
-
on Windows, git can do it for you, via `dos2unix`
-
you can have
fine grained control
over this with
gitattributes
(5)
- fine grained control
with `man 5
gitattributes
`
</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