# 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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/git-workflows-hub-ar): يدور العمل اليومي المعتاد مع Git حول خمس مهام: إنشاء فرع جديد والانتقال إليه، وحفظ عمل غير مكتمل في stash واستعادته، والتراجع عن commit دون… - [Everyday Git: branches, stash, undo and merge conflicts](https://kairos-2z6s.onrender.com/res/git-workflows-hub-en): Everyday Git work usually comes down to five tasks: create a branch and switch to it, park unfinished work in a stash and bring it back… - [حماية مفاتيح API وأسرار Git من التسريب: دليل شامل](https://kairos-2z6s.onrender.com/res/secrets-security-hub-ar): تسريب مفتاح API واحد في commit عام يمكن أن يكفي لأن يصل أحدهم إلى حسابك، وأول خطوة هي إبطاله فورا عند المزوّد. ## Guides - [git revert: undo a commit by adding a new one](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/python-json-full-en): The json module converts between JSON text and Python values: object/dict, array/list, string/str, number/int or float, true/false/bool… - [Python pathlib: join paths, read a file and list a folder](https://kairos-2z6s.onrender.com/res/python-pathlib-full-en): pathlib models paths as objects that can be joined, read and globbed. The run shows joining, reading and globbing. - [Python re module: find, extract and replace text with regex](https://kairos-2z6s.onrender.com/res/python-re-full-en): re finds, matches, splits and replaces text using patterns, and shows what happens when a pattern matches, does not match or is invalid. - [Git Branch Delete: -d versus -D](https://kairos-2z6s.onrender.com/res/git-branch-delete-full-en): git branch -d NAME refuses to delete a branch that is not merged into HEAD (or its upstream). git branch -D NAME deletes it anyway. - [Python str.join: build a string from a list](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/git-commit-fixup-full-en): git commit --fixup COMMIT records a commit marked for COMMIT. A later git rebase -i --autosquash moves it next to COMMIT and folds it in. - [chmod: read the permission string and change it](https://kairos-2z6s.onrender.com/res/chmod-basics-full-en): chmod sets read, write and execute bits on files and directories for owner, group and others, in symbolic or numeric form. - [curl basics: fetch a page, save it, read the status code](https://kairos-2z6s.onrender.com/res/curl-basics-full-en): curl transfers data over HTTP; it exits with 0 when the transfer completes, even for a 404, unless --fail is used. - [Bash script arguments and functions: $1, $@, shift and return codes](https://kairos-2z6s.onrender.com/res/bash-arguments-functions-full-en): A function receives its own positional parameters, which are restored when it returns; "$@" preserves argument boundaries. - [Bash conditionals: [ ] and [[ ]] with an empty variable](https://kairos-2z6s.onrender.com/res/bash-conditionals-full-en): [ ] is a POSIX test that follows argument rules; [[ ]] is a bash compound command that does pattern matching. Quoting is not tested here. - [Bash exit codes: 0 is success, and && and || use it](https://kairos-2z6s.onrender.com/res/bash-exit-codes-full-en): $? holds the exit status of the last command that ran; zero is success in shell tests, and non-zero is not success. - [Bash variables, loops and if: the basics](https://kairos-2z6s.onrender.com/res/bash-variables-loops-full-en): Shell variables hold strings; unquoted expansion splits on whitespace; if runs a command and tests its exit status. - [awk basics: split records into fields](https://kairos-2z6s.onrender.com/res/awk-basics-full-en): awk reads records and splits them into fields, then runs a pattern-action program. - [Python List Slicing: take part of a list](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/python-lambda-full-en): lambda args: expression makes an unnamed function whose body is one expression. It can be passed as the key argument of list.sort or sorted. - [Python lists: indexes, slices and the IndexError](https://kairos-2z6s.onrender.com/res/python-list-basics-full-en): Lists are ordered and mutable collections; indexing starts at zero; slicing returns a new list that holds the selected items. - [Python: write, append and read a text file](https://kairos-2z6s.onrender.com/res/python-files-full-en): open with with reads or writes a file and closes it on exit; w truncates, a appends. - [Python f-strings: expressions and format specs](https://kairos-2z6s.onrender.com/res/python-functions-fstrings-full-en): An f-string evaluates expressions and applies format specs. TE-32-A shows one f-string with an addition and a .2f spec. - [Python Generators: produce values one at a time](https://kairos-2z6s.onrender.com/res/python-generators-full-en): A function with yield returns a generator. Each next() runs it up to the next yield. When it ends, StopIteration is raised. - [Python if, for and while: the basics](https://kairos-2z6s.onrender.com/res/python-if-loops-full-en): if branches on a condition, for iterates any iterable, while repeats while a condition holds. - [Python Default Arguments: evaluated once](https://kairos-2z6s.onrender.com/res/python-default-arguments-full-en): A default value is evaluated once, when the function is defined. A mutable default such as a list is shared between calls. - [Python Defaultdict: a dict that fills missing keys](https://kairos-2z6s.onrender.com/res/python-defaultdict-full-en): collections.defaultdict(factory) calls factory() for a missing key and stores the result, so d[key].append(x) works with factory=list. - [Python dictionaries: lookup, default values and the KeyError](https://kairos-2z6s.onrender.com/res/python-dict-basics-full-en): A dictionary maps keys to values; d[key] raises KeyError when the key is missing, while get returns a default instead. - [Python enumerate, zip and range: loop with an index or two lists](https://kairos-2z6s.onrender.com/res/python-enumerate-zip-range-full-en): enumerate adds indexes, zip pairs iterables, range generates numbers. zip stops at the shortest; range excludes its stop; enumerate takes a… - [Python: count with a dict or Counter, and meet sets and tuples](https://kairos-2z6s.onrender.com/res/python-counting-sets-tuples-full-en): A dictionary or Counter counts occurrences; a set removes duplicates; a tuple is an immutable sequence. Set display order is not fixed. - [Python csv module: read and write rows with quoting rules](https://kairos-2z6s.onrender.com/res/python-csv-full-en): The csv module reads and writes rows with quoting rules that plain split cannot handle. Covers quoting and embedded commas with newline=''. - [Python Dataclasses: a class that stores values](https://kairos-2z6s.onrender.com/res/python-dataclasses-full-en): @dataclass writes __init__, __repr__ and __eq__ for a class from its annotated fields. The run used Python 3.10.12. - [Python dates: parse and compare](https://kairos-2z6s.onrender.com/res/python-dates-full-en): datetime parses, formats and compares dates and times. The example uses fixed dates and UTC as the only timezone. - [Python any and all: test a whole list](https://kairos-2z6s.onrender.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: read command-line arguments and get useful errors](https://kairos-2z6s.onrender.com/res/python-argparse-full-en): argparse parses positionals and options, validates types and produces usage errors. - [Python classes: a small example, line by line](https://kairos-2z6s.onrender.com/res/python-class-basics-full-en): A class defines attributes and methods; an instance holds its own attribute values and shares the class's methods. - [Python comprehensions: build a list, dict or set in one line](https://kairos-2z6s.onrender.com/res/python-comprehensions-full-en): A comprehension builds a list, dict or set from an iterable in one expression. Only one condition, x % 2 == 0, was run. - [Python Counter: count items](https://kairos-2z6s.onrender.com/res/python-counter-full-en): collections.Counter(iterable) counts how often each item appears. most_common(n) returns the n most frequent items as pairs. - [grep: search text, with the options worth knowing](https://kairos-2z6s.onrender.com/res/grep-basics-full-en): grep prints matching lines; exit 0 means a match, 1 no match, 2 an error. No-match is a normal result; reads stdin when no file is given. - [Answer questions about a log file with a pipeline](https://kairos-2z6s.onrender.com/res/log-pipeline-full-en): A pipeline turns raw log lines into counts by extracting fields, sorting and counting. - [Git Merge vs Rebase: How Each Integrates Changes and Shapes History](https://kairos-2z6s.onrender.com/res/merge-vs-rebase-full-en): Merge joins histories and may fast-forward without a merge commit; rebase replays commits onto a new base and rewrites their ids. - [Pipes and redirection: where command output goes](https://kairos-2z6s.onrender.com/res/pipes-redirection-full-en): A pipe connects one command's stdout to the next command's stdin; redirection decides where stdout and stderr go. - [Git Stash Include Untracked: set aside new files too](https://kairos-2z6s.onrender.com/res/git-stash-include-untracked-full-en): git stash leaves untracked files in place. git stash --include-untracked also stashes them and removes them from the working tree. - [Git Switch: change branches](https://kairos-2z6s.onrender.com/res/git-switch-full-en): git switch -c NAME creates a branch and switches to it. git switch NAME switches to an existing branch, and git switch - returns to the… - [git tag: name a commit, lightweight and annotated](https://kairos-2z6s.onrender.com/res/git-tag-full-en): A tag is a name for an object, usually a commit; lightweight tags point at the commit, annotated tags are their own objects. - [.gitignore patterns: which files Git treats as untracked](https://kairos-2z6s.onrender.com/res/gitignore-patterns-full-en): .gitignore lists patterns for files Git should treat as untracked. It does not untrack a file that is already committed; git add -f stages… - [Git Shortlog: commits per author](https://kairos-2z6s.onrender.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](https://kairos-2z6s.onrender.com/res/git-show-full-en): git show prints one commit: its message and its changes. --name-only lists only the changed file names. Only a plain commit was shown. - [Git Stash: set aside uncommitted work](https://kairos-2z6s.onrender.com/res/git-stash-full-en): git stash saves tracked changes on a stack and restores a clean working tree. git stash pop reapplies the newest entry and drops it. - [Git Restore: unstage or discard a file](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/git-rev-parse-full-en): git rev-parse --show-toplevel prints the top directory of the working tree. git rev-parse --abbrev-ref HEAD prints the current branch name. - [Git Rm Cached: stop tracking a file and keep it on disk](https://kairos-2z6s.onrender.com/res/git-rm-cached-full-en): git rm --cached FILE removes the file from the index, so Git stops tracking it, and leaves the file in the working tree. - [Git Reflog: the history of where HEAD pointed](https://kairos-2z6s.onrender.com/res/git-reflog-full-en): git reflog lists where HEAD has been, including commits that no branch points to any more. It is not shared on push or clone. - [git remote: connect a repository to another one](https://kairos-2z6s.onrender.com/res/git-remote-full-en): A remote is a name for a URL, which may be a path on the same machine or a remote address; fetch and push URLs can differ. - [git reset: soft, mixed and hard on the same repository](https://kairos-2z6s.onrender.com/res/git-reset-modes-full-en): reset moves the branch pointer to a target commit (default HEAD). --soft moves only the pointer; --mixed also resets the index; --hard also… - [git log: commits reachable from HEAD, and --all](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/git-log-s-full-en): git log -S STRING lists the commits that changed how many times STRING appears in a file. The run uses one fixed string. - [Git Ls Files: list what Git tracks](https://kairos-2z6s.onrender.com/res/git-ls-files-full-en): git ls-files lists the files in the index, which are the tracked files. --others lists untracked files, and --exclude-standard hides the… - [Git Mv: rename a tracked file](https://kairos-2z6s.onrender.com/res/git-mv-full-en): git mv OLD NEW renames the file and stages the rename in one step. Tested here: git mv renames a file and the rename is staged. - [Git Config Get: read one setting](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/git-diff-forms-full-en): git diff compares the working tree with the index; git diff --cached compares the index with HEAD. TE-12-A shows both. - [Git Grep: search tracked files](https://kairos-2z6s.onrender.com/res/git-grep-full-en): git grep -n PATTERN searches the tracked files and prints file name and line number. It does not look into untracked files. - [git clean: delete untracked files, with a dry run first](https://kairos-2z6s.onrender.com/res/git-clean-full-en): git clean deletes untracked files; -n previews, -f deletes, -d includes directories, -x includes ignored files. - [Git Commit Allow Empty: a commit with no changes](https://kairos-2z6s.onrender.com/res/git-commit-allow-empty-full-en): git commit with nothing staged refuses; in this run the exit status was 1. - [Git Commit Amend: replace the last commit](https://kairos-2z6s.onrender.com/res/git-commit-amend-full-en): git commit --amend replaces the last commit with a new one. The new commit has a different id. Add -m to change the message. - [Git Blame: who last changed each line](https://kairos-2z6s.onrender.com/res/git-blame-full-en): git blame FILE prints, for every line, the commit that last changed it. -L START,END limits the output to a line range, and -L START,+COUNT… - [Git Branch Rename: change a branch name](https://kairos-2z6s.onrender.com/res/git-branch-rename-full-en): git branch -m NEW renames the current branch. git branch -m OLD NEW renames another branch. Only branches without a remote were renamed. - [find: -maxdepth, -type f and -size +1c narrow the result](https://kairos-2z6s.onrender.com/res/find-options-full-en): find can limit depth, filter by type and filter by size. The run shows -maxdepth 1, -type f and -size +1c over three files. - [git bisect: find the commit that broke something](https://kairos-2z6s.onrender.com/res/git-bisect-full-en): Bisect finds the first bad commit by running a reproducible test across a range. Merge commits were not tested. - [diff: see what changed between two files](https://kairos-2z6s.onrender.com/res/diff-basics-full-en): diff reports line differences between two inputs and exits 0 when they match, 1 when they differ, 2 on trouble. - [mkdir, cp, mv and rm: the basic file commands](https://kairos-2z6s.onrender.com/res/file-commands-full-en): mkdir, cp, mv and rm create, copy, move and delete files and directories. The commands here run in a throwaway directory. - [find: list files by name and sort the result](https://kairos-2z6s.onrender.com/res/find-basics-full-en): find lists files by name pattern; sort makes the order deterministic. The run shows only -name and the effect of sort. - [tar basics: pack, list and unpack a folder](https://kairos-2z6s.onrender.com/res/tar-basics-full-en): tar packs files into one archive and unpacks them again. -c creates, -x extracts, -t lists, -z filters through gzip. - [Reading a failed Python test, line by line](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/xargs-basics-full-en): xargs turns its input into command arguments, but by its own quoting and blank rules, not one argument per line. - [Python Zip: loop over lists together](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/sed-basics-full-en): sed edits a stream using a pattern space; s/old/new/ replaces the first match on each line, and the g flag replaces all matches. - [sort, uniq and cut: count things in a text file](https://kairos-2z6s.onrender.com/res/sort-uniq-cut-full-en): sort orders lines, uniq collapses adjacent duplicates, cut extracts fields, characters or bytes. - [Python Tuples and Unpacking](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/python-venv-full-en): A venv gives a project its own prefix and site-packages while reusing the base interpreter. TE-22-A shows the prefix and base prefix only. - [Python With Statement: files closed for you](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/python-traceback-full-en): A Python exception stops the program and prints a traceback to standard error; the process exits with status 1. - [Python try and except: handle an error on purpose](https://kairos-2z6s.onrender.com/res/python-try-except-full-en): A matching except handles an exception and lets execution continue; an unmatched one propagates. - [Python try and finally: code that always runs](https://kairos-2z6s.onrender.com/res/python-try-finally-full-en): The finally block runs when the try block ends, with or without an error, and also when return leaves the function. - [Python sorting: sorted, sort and the key argument](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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: run a command, read output and exit code](https://kairos-2z6s.onrender.com/res/python-subprocess-full-en): subprocess.run starts a program, waits for it and returns a result object with the exit status, stdout and stderr. - [Python sys.exit: set the exit status](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/python-os-environ-full-en): os.environ behaves like a dictionary of environment variables. os.environ.get('NAME', default) returns the default when the variable is not… - [Python dict.get: read a key without KeyError](https://kairos-2z6s.onrender.com/res/python-dict-get-full-en): d.get(key, default) returns default when the key is missing, and None when you give no default. d[key] raises KeyError for a missing key. - [What a 12-line pre-commit hook catches, and what it doesn't](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/deleted-env-still-in-history-ar): حذف الملف في commit جديد يخفيه من آخر لقطة فقط. كل commit سابق يحتفظ بالمحتوى كاملا ويستطيع أي شخص يستنسخ المستودع طباعته. - [Deleting .env in a new commit does not hide the key](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/gitignore-env-not-ignored-ar): أضفت .env إلى .gitignore ومع ذلك يظهر في git status كملف معدل. قائمة التجاهل تُقرأ للملفات التي لم يسبق رفعها فقط، لذلك يبقى .env المرفوع… - [Git still tracks .env after adding it to .gitignore](https://kairos-2z6s.onrender.com/res/gitignore-env-not-ignored-en): You added .env to .gitignore, yet git status keeps listing it as modified. - [مفتاح API مسرب: الإلغاء أولا ثم فحص التاريخ](https://kairos-2z6s.onrender.com/res/leaked-key-revoke-and-scan-ar): الترتيب هو ما يحدد حجم الضرر. ألغ المفتاح عند المزود وأنشئ مفتاحا جديدا قبل أن تلمس Git لأن أي شخص يستطيع نسخ مستودع عام في أي وقت. - [Leaked API key: revoke first, then scan history](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/python-store-api-keys-env-vars-ar): ابق المفتاح خارج ملف الكود واقرأه عند تشغيل البرنامج. متغيرات البيئة أبسط مكان وتعمل بالطريقة نفسها على جهازك وعلى خادم أو مهمة CI. - [Storing API keys in a Python project](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/remove-secret-from-git-history-ar): أداة git-filter-repo هي الموصى بها لإعادة كتابة التاريخ: دليل git filter-branch نفسه يقول إن استخدامه غير موصى به ويصف أداءه بأنه بطيء جدا. - [Removing a committed secret from all Git history](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.com/res/create-and-switch-git-branch-en): A branch is a separate line of work. You try an idea on it, and main stays untouched until you decide to merge. - [حل تعارض الدمج (merge conflict) في Git خطوة بخطوة](https://kairos-2z6s.onrender.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://kairos-2z6s.onrender.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…