# Kairos free resources > Free guides in Arabic. Each page states its rights, shows an ad-page notice before any monetized link, and includes a tested example. Every guide also has a clean markdown version: append .md to its page URL. ## Topic hubs - [Keeping API keys and Git secrets safe: a guide](https://kairospan.com/res/secrets-security-hub-en): One leaked API key in a public commit can be enough for someone to reach your account, and the first step is to revoke it at the provider. - [مهام Git اليومية: الفروع وstash والتراجع وحل التعارضات](https://kairospan.com/res/git-workflows-hub-ar): اختر المهمة التي تواجهها الآن واذهب مباشرة إلى الدليل الذي يعرضها: خمس مهام يومية في Git، كل دليل ينفذ أوامره ويعرض ناتجها كما ظهر. - [Everyday Git: branches, stash, undo and merge conflicts](https://kairospan.com/res/git-workflows-hub-en): Start with the Git task in front of you and follow the guide that shows it, in the order you usually meet these jobs, with the output each… - [حماية مفاتيح API وأسرار Git من التسريب: دليل شامل](https://kairospan.com/res/secrets-security-hub-ar): ألغ المفتاح عند المزوّد قبل أي خطوة أخرى: مفتاح واحد في commit عام يكفي لأن يصل أحدهم إلى حسابك، وهذه الصفحة تجمع أدلة الأسرار بترتيب ما… ## Guides - [نقل دردشات واتساب من أندرويد إلى أندرويد: الشروط والخطوات](https://kairospan.com/res/whatsapp-chat-transfer-android-full-ar): ينقل خيار نقل الدردشات في واتساب سجل محادثاتك ووسائطك بالكامل من هاتف أندرويد إلى آخر، بشرط ألا يكون الهاتف الجديد مسجلًا في واتساب حتى… - [فريق كايروس التحريري: من يكتب، ومن يعتمد، وكيف نصحح الخطأ](https://kairospan.com/res/editorial-team-ar): كل صفحة في مكتبة كايروس تحمل اسمًا واحدًا للتوقيع هو "فريق كايروس التحريري"، ولا يحمل أي اسم شخص. - [منصة مدرستي: الخدمات وطريقة الدخول والواجبات والاختبارات](https://kairospan.com/res/madrasati-platform-guide-ar): تقدم منصة مدرستي خدمة تعليم إلكتروني للطلاب تشمل الاختبارات المركزية والواجبات والجدول المدرسي والمقررات الرقمية والدعم الفني، بحسب صفحة… - [GTA 6 صدر: الموعد والأجهزة والإصدارات من الصفحة الرسمية](https://kairospan.com/res/gta-6-release-platforms-editions-ar): صدر Grand Theft Auto VI في 19 نوفمبر 2026 على PlayStation 5 وXbox Series X|S، بحسب صفحة اللعبة الرسمية على Rockstar Games التي تحمل عبارة… - [مواعيد صرف مرتبات ديسمبر 2026: البداية 24 ديسمبر والمتأخرات 8 و9 و10](https://kairospan.com/res/salary-payment-dates-december-2026-ar): أعلنت وزارة المالية في مصر بدء صرف مرتبات شهر ديسمبر 2026 للعاملين بالدولة اعتبارًا من 24 ديسمبر، على مدار خمسة أيام، في كل الوزارات… - [Goodreads Choice Awards 2026: winners in all 15 categories](https://kairospan.com/res/goodreads-choice-awards-2026-winners-en): The 2026 Goodreads Choice Awards winners were announced on 3 December 2026: 15 categories and 9,139,041 votes cast in two rounds of member… - [أساسيات curl: جلب صفحة وحفظها وقراءة رمز الحالة](https://kairospan.com/res/curl-basics-full-ar): ينقل curl البيانات عبر HTTP؛ وينتهي بالحالة 0 عند اكتمال النقل، حتى مع الرمز 404، ما لم يُستخدم --fail. - [git reset: أوضاع soft وmixed وhard على المستودع نفسه](https://kairospan.com/res/git-reset-modes-full-ar): انقل مؤشر الفرع وحدد مصير ملفاتك: يحرك --soft المؤشر فقط ويبقي الفهرس وشجرة العمل، ويعيد --mixed ضبط الفهرس، ويمسح --hard تعديلات الملفات… - [Git Stash: ضع التعديلات غير المحفوظة جانبا](https://kairospan.com/res/git-stash-full-ar): أوقف العمل مؤقتًا وارجع بشجرة نظيفة: يحفظ git stash تعديلات الملفات المتتبَّعة في مكدّس، ويعيد git stash pop أحدث إدخال ثم يحذفه من المكدّس. - [git revert: undo a commit by adding a new one](https://kairospan.com/res/git-revert-full-en): Revert records a new commit that undoes the target change. TE-06-A covers the no-conflict case: one commit reverted cleanly and the file… - [Python json: read JSON text into Python values](https://kairospan.com/res/python-json-full-en): Turn JSON text into Python values and back: how json maps every value type, how dumps writes null and true, and what raises JSONDecodeError. - [Python pathlib: join paths, read a file and list a folder](https://kairospan.com/res/python-pathlib-full-en): Join, read and glob paths as objects instead of strings: pathlib keeps the parts as attributes and answers exists() without opening the… - [Python re module: find, extract and replace text with regex](https://kairospan.com/res/python-re-full-en): Find, split and replace text with a pattern, and know what a miss looks like: search matches anywhere, match anchors at the start, no match… - [Git Branch Delete: -d versus -D](https://kairospan.com/res/git-branch-delete-full-en): Delete a branch only when its work is safe: git branch -d refuses an unmerged branch, and git branch -D deletes it anyway. - [Python str.join: build a string from a list](https://kairospan.com/res/python-str-join-full-en): SEP.join(items) joins the strings in items with SEP between them. Every item must be a string, or join raises TypeError. - [Git Commit Fixup: correct an earlier commit](https://kairospan.com/res/git-commit-fixup-full-en): Mark a small fix for an older commit and let the rebase fold it in: git commit --fixup COMMIT records the marker, and --autosquash moves it… - [chmod: read the permission string and change it](https://kairospan.com/res/chmod-basics-full-en): Set the permission bits you mean, in numbers or letters: chmod 600 sets exact bits, u+x adds one, and a directory without execute cannot be… - [curl basics: fetch a page, save it, read the status code](https://kairospan.com/res/curl-basics-full-en): Move data over HTTP from the shell and read the exit status: curl exits 0 when the transfer completes, even for a 404, unless you pass… - [Bash arguments and functions: $1, $@, shift and return codes](https://kairospan.com/res/bash-arguments-functions-full-en): Pass arguments into a function without them leaking out: inside the function $@ holds its own parameters, and they are restored on return. - [Bash conditionals: [ ] and [[ ]] with an empty variable](https://kairospan.com/res/bash-conditionals-full-en): Choose between [ ] and [[ ]] and know what each accepts: [ ] follows argument rules, and [[ ]] adds pattern matching without word splitting. - [Bash exit codes: 0 is success, and && and || use it](https://kairospan.com/res/bash-exit-codes-full-en): Read $? and act on it: zero means success, any other value means failure, and a shell function can return a status of its own. - [Bash variables, loops and if: the basics](https://kairospan.com/res/bash-variables-loops-full-en): Keep an argument with a space in one piece and repeat work safely: quote the expansion to stop word splitting, and use a loop that ends on… - [awk basics: split records into fields](https://kairospan.com/res/awk-basics-full-en): Pull a field out of every line and total it: awk splits each record into fields, so $2 is one column, and an END block prints the sum. - [Python List Slicing: take part of a list](https://kairospan.com/res/python-list-slicing-full-en): a[start:stop] returns a new list from start up to but not including stop. - [Python Loop Else: runs when the loop did not break](https://kairospan.com/res/python-loop-else-full-en): The else block of a for loop runs when the loop ends without break. A break skips it. A break inside a while loop was not tested. - [Python lru_cache: remember function results](https://kairospan.com/res/python-lru-cache-full-en): functools.lru_cache stores results by arguments, so a repeated call with the same arguments does not run the function again. - [Python isinstance: check a type](https://kairospan.com/res/python-isinstance-full-en): isinstance(x, T) is true when x is an instance of T or of a subclass of T. T can be a tuple of types. Other class checks were not run. - [Python itertools.chain: loop over several sequences as one](https://kairospan.com/res/python-itertools-chain-full-en): itertools.chain(a, b) returns an iterator that yields the items of a, then the items of b. - [Python Lambda: a small function inline](https://kairospan.com/res/python-lambda-full-en): Write a one-expression function where it is used: a lambda fits as the key of sorted, and map applies it to every item in one line. - [Python lists: indexes, slices and the IndexError](https://kairospan.com/res/python-list-basics-full-en): Index, slice and sort a Python list without surprises: what raises IndexError, what returns a shorter list, and what changes the list in… - [Python: write, append and read a text file](https://kairospan.com/res/python-files-full-en): Read and write a file without leaking the handle: with closes it on exit, w truncates, a appends, and the run shows each mode. - [Python f-strings: expressions and format specs](https://kairospan.com/res/python-functions-fstrings-full-en): Put a computed value inside a string without concatenation: an f-string evaluates the expression and applies the format spec in place. - [Python Generators: produce values one at a time](https://kairospan.com/res/python-generators-full-en): Produce values one at a time instead of building a whole list: a function with yield returns a generator, and each next() runs to the… - [Python if, for and while: the basics](https://kairospan.com/res/python-if-loops-full-en): Branch and repeat without copying the same block: if picks a path, for walks any iterable, and while repeats while the condition holds. - [Python Default Arguments: evaluated once](https://kairospan.com/res/python-default-arguments-full-en): Avoid the shared list that keeps growing between calls: a default is evaluated once when the function is defined, so use None and build the… - [Python Defaultdict: a dict that fills missing keys](https://kairospan.com/res/python-defaultdict-full-en): Stop checking whether a key exists before you append: collections.defaultdict(list) creates the empty list on the first access and stores… - [Python dictionaries: lookup, default values and the KeyError](https://kairospan.com/res/python-dict-basics-full-en): Read and change a Python dictionary safely: d[key] raises KeyError when the key is missing, get returns a default, and this guide shows… - [Python enumerate, zip and range: loop with an index or pairs](https://kairospan.com/res/python-enumerate-zip-range-full-en): Get the index and the value in one loop, and pair two lists: enumerate counts, zip stops at the shorter list, and range leaves out its stop… - [Python counting with a dict or Counter, plus sets and tuples](https://kairospan.com/res/python-counting-sets-tuples-full-en): Pick the container that fits the job: a dict counts occurrences, a set drops duplicates and a tuple holds a fixed sequence. - [Python csv module: read and write rows with quoting rules](https://kairospan.com/res/python-csv-full-en): Read and write CSV rows that plain split cannot handle: quoting, commas and newlines, with newline='' and what strict=True raises. - [Python Dataclasses: a class that stores values](https://kairospan.com/res/python-dataclasses-full-en): Get __init__, __repr__ and __eq__ without writing them: @dataclass builds all three from the annotated fields of the class. - [Python dates: parse and compare](https://kairospan.com/res/python-dates-full-en): Parse, format and compare dates without another library: datetime reads a fixed string, prints it in another format and compares two values. - [Python any and all: test a whole list](https://kairospan.com/res/python-any-all-full-en): any(items) is true when at least one item is true. all(items) is true when every item is true. - [Python argparse: command-line arguments with clear errors](https://kairospan.com/res/python-argparse-full-en): Read options and positionals from the command line and fail cleanly: argparse checks the type, prints usage on a bad value and exits 2. - [Python classes: a small example, line by line](https://kairospan.com/res/python-class-basics-full-en): Give data its own methods instead of passing the same dictionary around: a class holds the attributes and each instance keeps its own… - [Python comprehensions: build a list, dict or set in one line](https://kairospan.com/res/python-comprehensions-full-en): Build a list, dict or set from an iterable in one expression: a comprehension over range(3) gave [0, 1, 4], and the set form dropped a… - [Python Counter: count items and find the most common](https://kairospan.com/res/python-counter-full-en): Count what appears in an iterable without writing a loop: collections.Counter tallies each item and most_common(n) returns the top n. - [grep: search text, with the options worth knowing](https://kairospan.com/res/grep-basics-full-en): Tell a missing match from a broken command: grep exits 0 on a match, 1 when nothing matched and 2 on an error, so a script can react to… - [Answer questions about a log file with a pipeline](https://kairospan.com/res/log-pipeline-full-en): Turn raw log lines into counts you can read: awk takes the field, sort and uniq -c count it, and the file here is synthetic, not traffic. - [Git merge vs rebase: how each one integrates changes](https://kairospan.com/res/merge-vs-rebase-full-en): Pick the join that fits the history you want: a merge can fast-forward without a merge commit, and a rebase replays commits under new ids. - [Pipes and redirection: where command output goes](https://kairospan.com/res/pipes-redirection-full-en): Send output into the next command and choose where errors land: a pipe carries stdout, and 2> moves stderr before it enters the pipe. - [Git Stash Include Untracked: set aside new files too](https://kairospan.com/res/git-stash-include-untracked-full-en): Park new files too, not only the edited ones: plain git stash leaves untracked files in place, and --include-untracked takes them and… - [Git switch: change branch, create one, come back](https://kairospan.com/res/git-switch-full-en): Move between branches without losing work: git switch -c creates one, git switch NAME moves to an existing branch, and git switch - goes… - [git tag: name a commit, lightweight and annotated](https://kairospan.com/res/git-tag-full-en): Name a release: a lightweight tag points at a commit, an annotated tag is its own object, and this guide shows how each one behaves. - [.gitignore patterns: which files Git treats as untracked](https://kairospan.com/res/gitignore-patterns-full-en): Stop a file from being added in the first place: .gitignore hides untracked files, but one already committed stays tracked until you remove… - [Git Shortlog: commits per author](https://kairospan.com/res/git-shortlog-full-en): git shortlog -sn counts commits per author (-s) and sorts by number of commits instead of by name (-n). - [Git show: read one commit, its message and its files](https://kairospan.com/res/git-show-full-en): Read one commit without leaving the terminal: git show prints its message and its changes, and --name-only lists the files it touched. - [Git Stash: set aside uncommitted work](https://kairospan.com/res/git-stash-full-en): Park unfinished work and get a clean tree back: git stash saves the tracked changes, pop restores the newest entry, and the stack keeps the… - [Git Restore: unstage or discard a file](https://kairospan.com/res/git-restore-full-en): git restore FILE replaces the working-tree file with the version in the index, so it discards edits that are not staged. - [Git Rev Parse: ask Git for a path or a commit id](https://kairospan.com/res/git-rev-parse-full-en): Ask Git where you are instead of guessing: git rev-parse --show-toplevel prints the repository root and --abbrev-ref HEAD prints the branch… - [Git Rm Cached: stop tracking a file and keep it on disk](https://kairospan.com/res/git-rm-cached-full-en): Stop tracking a file and keep it on disk: git rm --cached FILE removes it from the index, so the next commit no longer carries it. - [Git Reflog: the history of where HEAD pointed](https://kairospan.com/res/git-reflog-full-en): Recover a commit that no branch points to any more: git reflog lists where HEAD has been, including the states a reset left behind. - [git remote: connect a repository to another one](https://kairospan.com/res/git-remote-full-en): A remote is a name for a URL, and it does not have to be a server: this guide adds one on the same machine and shows what fetch and push… - [git reset: soft, mixed and hard on the same repository](https://kairospan.com/res/git-reset-modes-full-en): Move the branch pointer and decide what happens to your files: --soft keeps the index and the working tree, --mixed resets the index, and… - [git log: commits reachable from HEAD, and --all](https://kairospan.com/res/git-log-filters-full-en): git log lists the commits reachable from HEAD; --all adds commits reachable from other branches. - [Git Log -S: find the commit that added or removed a string](https://kairospan.com/res/git-log-s-full-en): Find the commit that changed how often a string appears: git log -S STRING walks the history and lists only the commits where that count… - [Git Ls Files: list what Git tracks](https://kairospan.com/res/git-ls-files-full-en): List what Git actually tracks and what it ignores: git ls-files prints the index, --others adds untracked paths, and --exclude-standard… - [Git mv: rename a tracked file or move it into a folder](https://kairospan.com/res/git-mv-full-en): Rename or move a tracked file in one step, and see what Git stages: git mv OLD NEW does both, and this guide shows the recorded result. - [Git Config Get: read one setting](https://kairospan.com/res/git-config-get-full-en): git config --get KEY prints the value of one setting (the current docs write this as git config get KEY). The recorded Git is 2.34.1. - [Git Describe: name a commit from the nearest tag](https://kairospan.com/res/git-describe-full-en): git describe names a commit after the nearest tag that is reachable from it. On the tagged commit it prints the tag. - [git diff: unstaged, staged, and against a commit](https://kairospan.com/res/git-diff-forms-full-en): See what changed and where it sits: git diff compares the working tree with the index, --cached compares the index with HEAD, and --stat… - [Git Grep: search tracked files](https://kairospan.com/res/git-grep-full-en): Search the files Git tracks and get a file name and line number back: git grep -n PATTERN reads the working tree, so an untracked file with… - [git clean: delete untracked files, with a dry run first](https://kairospan.com/res/git-clean-full-en): Delete untracked files on purpose: -n previews, -f deletes, -d takes folders and -x takes ignored files, with the real output of each run. - [Git Commit Allow Empty: a commit with no changes](https://kairospan.com/res/git-commit-allow-empty-full-en): Record a commit with no file change when a hook or a CI job needs one: plain git commit refuses with exit status 1, and --allow-empty… - [Git Commit Amend: replace the last commit](https://kairospan.com/res/git-commit-amend-full-en): Fix the last commit before anyone pulls it: git commit --amend replaces it with a new commit that carries a different id. - [Git Blame: who last changed each line](https://kairospan.com/res/git-blame-full-en): Find who last touched a line, and when: git blame FILE prints the commit for every line, and -L narrows the output to the lines you care… - [Git Branch Rename: change a branch name](https://kairospan.com/res/git-branch-rename-full-en): Rename a branch without losing its commits: git branch -m NEW renames the one you are on, and git branch -m OLD NEW renames another by name. - [find: -maxdepth, -type f and -size +1c narrow the result](https://kairospan.com/res/find-options-full-en): Narrow a search to the files you meant: -maxdepth, -type and -size combine, so only the big regular file at the top level comes back. - [git bisect: find the commit that broke something](https://kairospan.com/res/git-bisect-full-en): Find the commit that broke a working tree without reading the log: git bisect run runs a test across a range and stops at the first bad… - [diff: see what changed between two files](https://kairospan.com/res/diff-basics-full-en): Compare two files and let a script act on the answer: diff exits 0 when they match, 1 when they differ and 2 on trouble, and -u shows the… - [mkdir, cp, mv and rm: the basic file commands](https://kairospan.com/res/file-commands-full-en): Create, copy, move and delete files without touching anything real: the run does it inside a throwaway directory and prints what is left. - [find: list files by name and sort the result](https://kairospan.com/res/find-basics-full-en): Get the same file list on every machine: find -name prints paths in an order that can change, and sort makes the result repeatable. - [tar basics: pack, list and unpack a folder](https://kairospan.com/res/tar-basics-full-en): Pack a folder into one file and unpack it somewhere else: -c creates, -t lists without extracting, and -C sets where extraction lands. - [Reading a failed Python test, line by line](https://kairospan.com/res/unittest-failure-full-en): unittest reports failures and errors separately and exits non-zero when tests fail. - [xargs: turn lines of input into command arguments](https://kairospan.com/res/xargs-basics-full-en): Turn a list into arguments without losing names that contain spaces: -0 with -print0 keeps each path whole, where the default splits on… - [Python Zip: loop over lists together](https://kairospan.com/res/python-zip-full-en): zip(a, b) pairs items by position and stops at the shortest input. With strict=True unequal lengths raise ValueError. - [Restore a deleted branch with git reflog](https://kairospan.com/res/restore-deleted-branch-full-en): A deleted branch can be recreated at a commit that is still reachable, and the reflog is the usual place to find that commit. - [sed basics: replace text in a stream](https://kairospan.com/res/sed-basics-full-en): Replace one match or every match on a line: s/old/new/ changes the first, the g flag changes all of them, and & puts the match back. - [sort, uniq and cut: count things in a text file](https://kairospan.com/res/sort-uniq-cut-full-en): Count repeats in a file without a script: sort groups the identical lines, uniq -c counts each group, and cut takes the field you want. - [Python tuples and unpacking: starred names and swaps](https://kairospan.com/res/python-tuples-unpacking-full-en): A tuple is an ordered sequence that cannot be changed after creation. Unpacking assigns its items to names in one line, and *rest collects… - [python -m venv: a separate package folder for one project](https://kairospan.com/res/python-venv-full-en): Give a project its own packages without touching the system Python: a venv reuses the base interpreter and keeps its own prefix and… - [Python With Statement: files closed for you](https://kairospan.com/res/python-with-statement-full-en): with open(path) as f: closes the file when the block ends, even if an error happens inside it. Only files are shown. - [Reading a Python traceback from the bottom up](https://kairospan.com/res/python-traceback-full-en): Read a traceback and find the line that failed: an uncaught exception exits 1, and the last line names the exception type and its message. - [Python try and except: handle an error on purpose](https://kairospan.com/res/python-try-except-full-en): Catch only the error you meant to catch: a matching except lets the program continue, an unmatched one still stops it, and finally always… - [Python try and finally: code that always runs](https://kairospan.com/res/python-try-finally-full-en): Make cleanup run whether or not the code failed: finally runs on a normal exit, on an error and on return, and can replace the return value. - [Python sorting: sorted, sort and the key argument](https://kairospan.com/res/python-sorting-full-en): sorted(iterable) returns a new sorted list; list.sort() sorts in place and returns None; key chooses the sort value. - [Python string methods: strip, split, replace and friends](https://kairospan.com/res/python-string-methods-full-en): String methods do not change the original string: they return a new value (a string, a list or a number), because strings are immutable. - [Python subprocess.run: capture output and read the exit code](https://kairospan.com/res/python-subprocess-full-en): Run another program from Python and read what it printed: subprocess.run waits, returns the exit status, and capture_output keeps the two… - [Python sys.exit: set the exit status](https://kairospan.com/res/python-sys-exit-full-en): sys.exit(n) ends the program with exit status n. sys.exit("text") prints the text to standard error and exits with status 1. - [Python Raise: signal an error on purpose](https://kairospan.com/res/python-raise-full-en): raise ValueError("message") stops the current code and passes the error up until an except catches it. raise ... - [Python range: a sequence of numbers](https://kairospan.com/res/python-range-full-en): range(stop) counts from 0 up to but not including stop. range(start, stop, step) sets the start and the step. - [Python round: ties go to the even number](https://kairospan.com/res/python-round-full-en): round(x) returns an integer. When x is exactly halfway between two integers, round picks the even one. This run shows the same result. - [Python Sets: unique items and set operations](https://kairospan.com/res/python-sets-full-en): A set keeps unique items without order. | is union, & is intersection, .difference() removes the items of the other set. - [Python max and min with key: pick by a rule](https://kairospan.com/res/python-max-min-key-full-en): max(items, key=func) returns the item with the largest func(item), and min returns the smallest. - [Python modules and imports: how import binds names](https://kairospan.com/res/python-modules-imports-full-en): A module is a unit of code that the interpreter loads once per session; import binds the loaded module to a name. - [Python os.environ: read environment variables](https://kairospan.com/res/python-os-environ-full-en): Read environment variables without a crash: get returns a default for an unset name, [] raises KeyError, and a child process sees what you… - [Python dict.get: read a key without KeyError](https://kairospan.com/res/python-dict-get-full-en): Read a key that may be missing without a crash: d.get(key, default) returns the default, and d[key] raises KeyError. - [What a 12-line pre-commit hook catches, and what it misses](https://kairospan.com/res/pre-commit-secrets-hook-en): A pre-commit hook is the cheapest place to stop a credential from leaving a laptop, and this one is 12 lines of POSIX shell with no… - [حذف .env في commit جديد لا يخفي المفتاح](https://kairospan.com/res/deleted-env-still-in-history-ar): احذف .env في commit جديد وستجده ما زال مقروءًا من الـ commit القديم: كل commit سابق يحتفظ بالمحتوى كاملًا، ومن يستنسخ المستودع يطبعه. - [Deleting .env in a new commit does not hide the key](https://kairospan.com/res/deleted-env-still-in-history-en): Deleting a file in a new commit hides it from the latest snapshot only. Every earlier commit still holds the full content, and anyone who… - [Git يتتبع .env رغم إضافته إلى .gitignore](https://kairospan.com/res/gitignore-env-not-ignored-ar): أضفت .env إلى .gitignore ومع ذلك يظهر في git status كملف معدل. قائمة التجاهل تُقرأ للملفات التي لم يسبق رفعها فقط، لذلك يبقى .env المرفوع… - [Git still tracks .env after adding it to .gitignore](https://kairospan.com/res/gitignore-env-not-ignored-en): You added .env to .gitignore, yet git status keeps listing it as modified. - [مفتاح API مسرب: الإلغاء أولا ثم فحص التاريخ](https://kairospan.com/res/leaked-key-revoke-and-scan-ar): الترتيب هو ما يحدد حجم الضرر. ألغ المفتاح عند المزود وأنشئ مفتاحا جديدا قبل أن تلمس Git لأن أي شخص يستطيع نسخ مستودع عام في أي وقت. - [Leaked API key: revoke first, then scan history](https://kairospan.com/res/leaked-key-revoke-and-scan-en): The order decides how much damage is done. Revoke the key at the provider and create a new one before touching Git, because anyone can copy… - [تخزين مفاتيح API في مشروع بايثون](https://kairospan.com/res/python-store-api-keys-env-vars-ar): ابق المفتاح خارج ملف الكود واقرأه عند تشغيل البرنامج. متغيرات البيئة أبسط مكان وتعمل بالطريقة نفسها على جهازك وعلى خادم أو مهمة CI. - [Storing API keys in a Python project](https://kairospan.com/res/python-store-api-keys-env-vars-en): Keep the key outside the source file and read it when the program starts. - [حذف سر مرفوع من كل تاريخ Git بالكامل](https://kairospan.com/res/remove-secret-from-git-history-ar): أداة git-filter-repo هي الموصى بها لإعادة كتابة التاريخ: دليل git filter-branch نفسه يقول إن استخدامه غير موصى به ويصف أداءه بأنه بطيء جدا. - [Removing a committed secret from all Git history](https://kairospan.com/res/remove-secret-from-git-history-en): git-filter-repo is the recommended tool for rewriting history: the git filter-branch manual says its use is not recommended and calls its… - [Create and switch to a new Git branch](https://kairospan.com/res/create-and-switch-git-branch-en): Make a branch before you touch a working repository: git switch -c feature-x creates it and moves you onto it, and main stays exactly as it… - [حل تعارض الدمج (merge conflict) في Git خطوة بخطوة](https://kairospan.com/res/fix-git-merge-conflict-ar): فرعين غيّروا نفس السطر في نفس الملف. Git مش قادر يختار عنك، فـ git merge feat بيقف برسالة CONFLICT (content): Merge conflict in f… - [How to fix a Git merge conflict step by step](https://kairospan.com/res/fix-git-merge-conflict-en): Two branches changed the same line of the same file. Git cannot pick one for you, so git merge feat stops with CONFLICT (content): Merge…