Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' of https://[email protected]/zzzamyatin/langu…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
Dmitry committed Dec 4, 2023
2 parents fa22d55 + 6a052e1 commit af061f7
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 5 deletions.
2 changes: 1 addition & 1 deletion diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions git/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# get help
# Git

## get help
```
git help # in general
git help tutorial # the very basics
Expand All @@ -8,11 +10,12 @@ git help blame
man git-blame
```

# get a file from history to another location
git show commit:filepath > location
## best practice
git show commit:filepath > location # get a file from history to another location
git for-each-ref --format "%(authorname)" | sort -u # get all authors



# todo
## todo
* https://www.freecodecamp.org/news/git-under-the-hood/
* https://www.freecodecamp.org/news/how-to-write-better-git-commit-messages/
93 changes: 93 additions & 0 deletions git/gitignore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Gitignore
https://git-scm.com/docs/gitignore
https://help.github.com/en/github/using-git/ignoring-files
https://github.com/github/gitignore

```
file_pattern_to_exclude >> .gitignore
nano .gitignore 
nano .git/info/exclude
git rm –cached <filename> # stop tracking the file 
git rm -r --cached . 
git ls-files --ignored --exclude-standard
git ls-files --ignored --exclude-standard | sed 's/.*/"&"/' | xargs git rm -r --cached
 
git add . 
git commit -m ".gitignore: added …, removed …, changed …" 
git ls-files --other --directory #list of ignored files 
git push
```

## Whitelisting
https://jasonstitt.com/gitignore-whitelisting-patterns
```
# typical
*
!*/
*/some/dir3/**
!.gitignore
# for all dir content
/*
!/whitelisteddir1
!/whitelisteddir2
!.gitignore
# to track only the dir but not the files in it
*
!.gitignore
```


## Windows user profile
```
.bash_history
ntuser*
Application Data/
Anwendungsdaten/
Cookies/
Documents/My Music/
Documents/My Pictures/
Documents/My Videos/
Local Settings/
Lokale Einstellungen/
My Documents/
NetHood/
Netzwerkumgebung/
PrintHood/
Druckumgebung/
Recent/
SendTo/
Start Menu/
Startmenü/
Templates/
Vorlagen/
Appdata/
Eigene Dateien/
Downloads/
Favorites/
Links/
Searches/
*.log
desktop.ini
.ssh/id_rsa*
.ssh/known_hosts
```




16 changes: 16 additions & 0 deletions github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Github

## Markup
https://github.com/github/markup
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax

Tables https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables
Diagrams https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams


## Actions
https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions


## Edu
https://skills.github.com/
3 changes: 3 additions & 0 deletions kubernetes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Kubernetes
https://www.edx.org/learn/kubernetes/the-linux-foundation-introduction-to-kubernetes
https://kubernetes.io/training/#get-certified

0 comments on commit af061f7

Please sign in to comment.