init
This commit is contained in:
commit
c5cd492449
475 changed files with 27928 additions and 0 deletions
12
technology/dev/Development.md
Normal file
12
technology/dev/Development.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
tags: ["meta"]
|
||||
obj: meta/collection
|
||||
---
|
||||
|
||||
# Development
|
||||
## Languages
|
||||
- [Python](../programming/languages/Python.md)
|
||||
- [Rust](../programming/languages/Rust.md)
|
||||
|
||||
## Tools
|
||||
- [Git](Git.md)
|
97
technology/dev/Git.md
Normal file
97
technology/dev/Git.md
Normal file
|
@ -0,0 +1,97 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# Git
|
||||
#refactor
|
||||
Git is the version control system (VCS) designed and developed by Linus Torvalds, the creator of the [Linux](../linux/Linux.md) kernel. Git is now used to maintain AUR packages, as well as many other projects, including sources for the [Linux](../linux/Linux.md) kernel.
|
||||
There is a commit naming scheme called [gitmoji](gitmoji.md)
|
||||
|
||||
To control a git repo graphically [GitHub Desktop](https://github.com/desktop/desktop) can be used.
|
||||
|
||||
## Configuration
|
||||
|
||||
In order to use Git you need to set at least a name and [email](../internet/eMail.md):
|
||||
|
||||
```shell
|
||||
git config --global user.name "John Doe"
|
||||
git config --global user.email "johndoe@example.com"
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
A Git repository is contained in a `.git` directory, which holds the revision history and other metadata. The directory tracked by the repository, by default the parent directory, is called the working directory. Changes in the working tree need to be staged before they can be recorded (committed) to the repository. Git also lets you restore, previously committed, working tree files.
|
||||
|
||||
### Using a Git repository
|
||||
|
||||
Initialize a repository
|
||||
`git init`
|
||||
|
||||
Clone an existing repository
|
||||
`git clone repository`
|
||||
|
||||
Commit:
|
||||
`git commit -m message`
|
||||
|
||||
See Commits:
|
||||
`git log`
|
||||
|
||||
See structured history:
|
||||
`git log --graph --oneline --decorate`
|
||||
|
||||
### Signing commits
|
||||
Git allows commits and tags to be signed using [GnuPG](../tools/GPG.md).
|
||||
`git config --global commit.gpgSign true`
|
||||
|
||||
## Branching
|
||||
Fixes and new features are usually tested in branches. When changes are satisfactory they can merged back into the default (master) branch.
|
||||
|
||||
Create a branch, whose name accurately reflects its purpose:
|
||||
`git branch help-section-addition`
|
||||
|
||||
List branches:
|
||||
`git branch`
|
||||
|
||||
Switch branches:
|
||||
`git checkout branch`
|
||||
|
||||
Create and switch:
|
||||
`git checkout -b branch`
|
||||
|
||||
Merge a branch back to the master branch:
|
||||
```shell
|
||||
git checkout master
|
||||
git merge branch
|
||||
```
|
||||
|
||||
The changes will be merged if they do not conflict. Otherwise, Git will print an error message, and annotate files in the working tree to record the conflicts. The annotations can be displayed with `git diff`. Conflicts are resolved by editing the files to remove the annotations, and committing the final version.
|
||||
|
||||
When done with a branch, delete it with:
|
||||
`git branch -d branch`
|
||||
|
||||
## Remotes
|
||||
Create a remote:
|
||||
`git remote add label location`
|
||||
|
||||
View remotes for the current repository:
|
||||
`git remote -v`
|
||||
|
||||
Pull from a reposity:
|
||||
`git pull`
|
||||
|
||||
Push to a repository:
|
||||
`git push location branch`
|
||||
|
||||
## Tagging
|
||||
Tag commits for versioning:
|
||||
`git tag 2.14 checksum`
|
||||
`git tag -a 2.14 -m "Version 2.14"`
|
||||
|
||||
List tags:
|
||||
`git tag -l`
|
||||
|
||||
Delete a tag:
|
||||
`git tag -d 2.08`
|
||||
|
||||
Update remote tags:
|
||||
`git push --tags`
|
88
technology/dev/gitmoji.md
Normal file
88
technology/dev/gitmoji.md
Normal file
|
@ -0,0 +1,88 @@
|
|||
---
|
||||
obj: concept
|
||||
website: https://gitmoji.dev
|
||||
---
|
||||
|
||||
# Gitmoji
|
||||
An emoji guide for your commit messages
|
||||
|
||||
## Add
|
||||
|
||||
## Fixes
|
||||
- 🦠 ```:microbe:``` : Fixing Vulnerabilities
|
||||
- 🔒️ ```:lock:``` : Fix security issues
|
||||
- 🚑️ ```:ambulance:``` : Critical hotfix
|
||||
- 🐛 ```:bug:``` : Fix Bug
|
||||
- 🩹 ```:adhesive_bandage:``` : Simple fix for a non-critical issue
|
||||
- 🚨 ```:rotating_light:``` : Fix compiler / linter warnings
|
||||
|
||||
## Remove
|
||||
- 💀 ```:skull:``` : Remove dead code
|
||||
- 🔥 ```:fire:``` : Remove code or files
|
||||
- 🗑️ ```:wastebasket:``` : Deprecate code that needs to be cleaned up
|
||||
|
||||
## Tests
|
||||
- ⚗️ ```:alembic:``` : Experiments
|
||||
- ✅ ```:white_check_mark:``` : Add, update, or pass tests
|
||||
- 🧪 ```:test_tube:``` : Tests
|
||||
|
||||
## Changes
|
||||
- 🔐 ```:closed_lock_with_key:``` : Update Secrets
|
||||
- 🖇️ ```:paperclips:``` : [Git](Git.md) Submodules
|
||||
- ✍️ ```:writing_hand:``` : Rewrite Code
|
||||
- 🚚 ```:truck:``` : Move or rename resources (e.g.: files, paths, routes)
|
||||
- 🥞 ```:pancakes:``` : Database Changes
|
||||
- ♻️ ```:recycle:``` : Refactor code
|
||||
- 🔧 ```:wrench:``` : Add or update configuration files
|
||||
- 🔨 ```:hammer:``` : Add or update development scripts
|
||||
- 👽️ ```:alien:``` : Update code due to external API changes
|
||||
- 💥 ```:boom:``` : Introduce breaking changes
|
||||
- 🍱 ```:bento:``` : Add or update assets
|
||||
- ♿️ ```:wheelchair:``` : Accessibility
|
||||
- 💡 ```:bulb:``` : Add or update comments in source code
|
||||
- 🏗️ ```:building_construction:``` : Make architectural changes
|
||||
- 🥚 ```:egg:``` : Add or update an easter egg
|
||||
- 🛂 ```:passport_control:``` : Work on code related to authorization, roles and permissions
|
||||
- 🧱 ```:bricks:``` : Infrastructure related changes
|
||||
- ⚡️ ```:zap:``` : Improve Performance
|
||||
- ✨ ```:sparkles:``` : New Features
|
||||
- 🚀 ```:rocket:``` : Deploy
|
||||
- 🚧 ```:construction:``` : Work in progress
|
||||
- 🌐 ```:globe_with_meridians:``` : Internationalization and localization
|
||||
- ✏️ ```:pencil2:``` : Fix typos
|
||||
|
||||
## Documentation
|
||||
- 📝 ```:memo:``` : Add or update documentation
|
||||
- 📋 ```:clipboard:``` : Add TODOs
|
||||
- 📄 ```:page_facing_up:``` : Add or update license
|
||||
|
||||
## CI
|
||||
- 👷 ```:construction_worker:``` : Add or update CI build system
|
||||
- 💚 ```:green_heart:``` : Fix CI
|
||||
|
||||
## Packaging
|
||||
- 🐳 ```:whale:``` : [Docker](../tools/Docker.md)
|
||||
- 📦 ```:package:``` : Packaging changes
|
||||
|
||||
## State
|
||||
- 😴 ```:sleeping:``` : Write code sleeplessly
|
||||
- 🍷 ```:wine_glass:``` : Drunk code
|
||||
- ☕ ```:coffee_break:``` : Commit before break
|
||||
|
||||
## Dependency
|
||||
- ✖️ ```:heavy_multiplication_x:``` : Replace a dependency
|
||||
- ⬇️ ```:arrow_down:``` : Downgrade dependency
|
||||
- ⬆️ ```:arrow_up:``` : Upgrade dependency
|
||||
- 📌 ```:pushpin:``` : Pin dependency versions
|
||||
- ➕ ```:heavy_plus_sign:``` : Add dependency
|
||||
- ➖ ```:heavy_minus_sign:``` : Remove dependency
|
||||
|
||||
## Collaboration
|
||||
- 🤝 ```:handshake:``` : Code Review
|
||||
|
||||
## [Git](Git.md)
|
||||
- 🔖 ```:bookmark:``` : Version Tag
|
||||
- ⏪️ ```:rewind:``` : Revert changes
|
||||
- 🔀 ```:twisted_rightwards_arrows:``` : Merge branches
|
||||
- 🎉 ```:tada:``` : Init Commit
|
||||
- 🙈 ```:see_no_evil:``` : Add or update a .gitignore file
|
Loading…
Add table
Add a link
Reference in a new issue