🐰 The Better Threshold Management Update! 🎉 Bencher v0.4.21 is out, and it is now easier than ever to manage your thresholds and catch performance regression in CI! You can now manage your Thresholds directly with `bencher run` using: - `--threshold-measure` - `--threshold-test` - `--threshold-min-sample-size` - `--threshold-max-sample-size` - `--threshold-window` - `--threshold-lower-boundary` - `--threshold-upper-boundary` - `--thresholds-reset` Then for your feature branches, all you need to is set is the new `--start-point-clone-thresholds` flag and you're good to go! The other Start Point related options have also been update, with old versions are now deprecated: - `--branch-start-point` -> `--start-point` - `--branch-start-point-hash` -> `--start-point-hash` - `--branch-reset` -> `--start-point-reset` Speaking of feature branches, are you tired of those old feature branches handing around long after they've been merged? Well, now you can use the new `bencher archive` command to archive them as soon as they're merged! Checkout the update docs: - GitHub Actions: https://lnkd.in/e9s_t5yX - GitLab CI/CD: https://lnkd.in/eyDd_gny - Track Benchmarks in CI: https://lnkd.in/eRZ28M4j And all the changes in the release notes: https://lnkd.in/e7BcfVT5
Everett Pompeii’s Post
More Relevant Posts
-
To work better with repositories and updates of any size, I updated the AI-powered Git commit message generator with a few options: --include-content: Include file content in the analysis (disabled by default) --include-history: Include file commit history in the analysis (disabled by default) --context-lines N: Number of context lines to show in git diff (default: 3)
GitHub - danilop/commit-message-generator: Elevate your Git workflow with intelligent, context-aware commit messages generated by an AI language model.
github.com
To view or add a comment, sign in
-
𝐇𝐨𝐰 𝐆𝐢𝐭 𝐄𝐟𝐟𝐢𝐜𝐢𝐞𝐧𝐭𝐥𝐲 𝐓𝐫𝐚𝐜𝐤𝐬 𝐄𝐯𝐞𝐫𝐲 𝐂𝐡𝐚𝐧𝐠𝐞 𝐁𝐞𝐡𝐢𝐧𝐝 𝐭𝐡𝐞 𝐒𝐜𝐞𝐧𝐞𝐬 😯 I’ve always been amazed at how seamlessly Git tracks even the smallest changes in our code. In this post, I’m diving into the internals of Git. 𝐇𝐨𝐰 𝐆𝐢𝐭 𝐓𝐫𝐚𝐜𝐤𝐬 𝐂𝐡𝐚𝐧𝐠𝐞𝐬 Git primarily tracks the content of files, not the files themselves. It uses snapshots of the content at any point in time. Here’s how Git accomplishes this: ➡️ Content-Addressable Storage: Every file or directory in Git is represented as an object, identified by a SHA-1 hash (a 40-character checksum). This hash is based on the contents of the file or directory. This means that even a small change in a file's content results in a completely new hash. ➡️ Blob Objects: The content of each file is stored as a blob (binary large object). A blob stores the contents of a file but not its name or any metadata. Each blob is uniquely identified by its SHA-1 hash. ➡️ Tree Objects: A tree object represents the directory structure in Git. It stores pointers to other trees (subdirectories) or blobs (files) along with metadata like file names and modes (permissions). ➡️ Commit Objects: A commit object ties everything together. Each commit stores a reference to a tree object (the project’s directory structure at the time of the commit), parent commit(s), a message, and metadata like the author and timestamp. Git doesn’t track changes to a file line by line in a traditional sense. Instead, it stores snapshots of the entire project, but because of its hashing mechanism, it only stores changes that are different. So, even if only one line changes, Git reuses the blobs that haven’t changed and only creates new ones for the changes. 𝐄𝐟𝐟𝐢𝐜𝐢𝐞𝐧𝐜𝐲 𝐨𝐟 𝐆𝐢𝐭 ➡️ Only stores changes: Rather than keeping multiple copies of the entire file, Git keeps snapshots of just the changes. If a file hasn’t changed, Git reuses the previous blob for that file. ➡️ Compression: Git compresses the objects it stores, making the history of even large projects relatively small on disk. ➡️ Delta Storage: Over time, as history grows, Git can pack objects together and store them as deltas (differences between versions) to further save space. 𝐁𝐫𝐚𝐧𝐜𝐡𝐢𝐧𝐠 𝐚𝐧𝐝 𝐌𝐞𝐫𝐠𝐢𝐧𝐠 ➡️ Branches in Git are just pointers to a specific commit. When you create a new branch, Git creates a new pointer. When you commit on that branch, the pointer moves to the new commit. ➡️ Merging involves combining changes from one branch into another. Git uses the common ancestor of the two branches being merged to determine what changes need to be applied. #Day24OfProgrammingDiaries #Git #VersionControl #CodeBackup #GitHub
To view or add a comment, sign in
-
Running End-to-End tests with Jest (or other Unit Test tools). Solid automation tests are the backbone of CI;CD. You can’t trust that your code is ready to go to production without them. While it’s standard to include unit tests with your code, that’s not enough. You have to make sure the units work together. To achieve that, you need end-to-end tests. But using a dedicated end-to-end test framework means learning another tool and, often, another license. If you’re working on a small or open-source project, that might not be an option. In that case, you can often run end-to-end tests with your unit test framework. Jest specifically provides several tools to support this. Some in the community argue that Jest should just be used for Unit tests. I have to disagree. You Should keep your unit and end-to-end test separate, but that doesn’t mean you need different tools, just different folders. Jest provides the tools, and Jestjs.io provides instructions on integrating testing. So I see no reason why not to use it. So, how do you perform end-to-end testing with Jest? For microservices, I use three primary tools. - Supertest to invoke the routes. - A Javascript memory database or mock (e.g., mongodb-memory-server) for the microservice to connect to. - A stateful mock service engine, (e.g., Mock Service Worker) to intercept API calls. In your BeforeAll block, you start your memory server and mock the service engine. You override your connection strings and configurations as required. Then, you seed your database with the data required. Each test will then invoke a route and store the data in your memory database or stateful mock. The next tests will make another API call, using the state established in the first. You can chain your calls together like you expect a user to. I created a basic microservice on GitHub to show you how the pieces go together. This is the same service I created with Copilot. So if you see something you don’t like, blame Copilot, not me. The link is here: https://lnkd.in/gdqiTE2f
GitHub - matt10nick/jest-end-to-end-test-example: An example of how to use Jest for end-to-end testing
github.com
To view or add a comment, sign in
-
Now that you have a good understanding of the basic usage of Task.WaitAll and Task.WhenAll, let’s dive into some advanced concepts related to exception handling, cancellation, and performance considerations when working with multiple tasks in C#. Exception Handling When working with multiple tasks, it’s crucial to handle exceptions properly. Task.WaitAll and Task.WhenAll provide different ways to handle exceptions. Task.WaitAll: If any of the tasks thrown an unhandled exception, Task.WaitAll re-throws the exception on the calling thread. You can use the aggregateException.Flatten() method to handle multiple exceptions from multiple tasks. Task.WhenAll: Returns a task that represents the completion of all the specified tasks. If any of the tasks thrown an exception, the task returned by Task.WhenAll will be faulted, and you can use the .Exception property to retrieve the exception information. Performance Considerations When working with a large number of tasks, it’s essential to consider the impact on performance and memory usage. Here are some best practices: Use the appropriate method: Task.WhenAll is generally preferred over Task.WaitAll as it provides better performance and more flexibility. Avoid creating too many tasks: Creating a large number of tasks can consume significant memory and resources. Use task grouping techniques, such as Task.WhenAll and Task.WhenAny, to manage tasks efficiently. Consider Using Parallel LINQ (PLINQ): For operations that can be parallelized easily, such as querying a database or performing a calculation on a collection, consider using PLINQ. It provides a convenient and efficient way to parallelize operations and manage the completion of tasks. Error Propagation When an exception occurs in a task, it’s important to propagate the exception to the calling code so that it can be handled appropriately. This can be achieved using the following techniques: Propagate Exceptions Synchronously: When using Task.WaitAll or Task.WhenAll, exceptions are automatically propagated to the calling code synchronously. Propagate Exceptions Asynchronously: When using the async/await pattern, exceptions are propagated asynchronously. You can catch exceptions using a try/catch block around the await expression. In Summary - Task.WhenAll enables non-blocking coordination - Avoid blocking calls after await WhenAll - Handle aggregate exceptions from tasks - Use continuations for follow-up logic Lots of Great How Tos and Code Samples! Make sure to like and subscribe! GitHub Repo: https://lnkd.in/gMW3XqQB #softwaredevelopment #softwareengineering #softwaredeveloper #softwareengineer #customsoftwaredevelopment #softwaremyths #azure #azureengineer #azuredevelopment #microsoftazure #c #dotnet #dotnetcoding #dotnetcodingbootcamp #html #javascript #learntocode #learntocode #coding #codingbootcamp #becomesoftwareengineer #codinglife
Task.WaitAll vs. Task.WhenAll Advance Concepts in C# | HOW TO - Code Samples
To view or add a comment, sign in
-
Maintaining consistent and reliable communication between services is crucial in the evolving #API development landscape. #Buf, an advanced tool for Protocol Buffers and #gRPC, offers powerful features to streamline this process. In this blog, we’ll explore a simple configuration setup for generating Protobuf using Buf, integrate it with #GitHub Actions for continuous integration, and address common issues like format inconsistencies and breaking changes. By leveraging Buf’s capabilities, you can ensure smoother and more effective management of your Protobuf schemas and API interactions. The text discusses configuring Buf to generate Protocol Buffers (Protobuf) and integrate it with GitHub Actions for continuous integration and delivery. It provides example configurations for Buf and GitHub Actions to automate Protobuf generation and format checking. Key commands such as buf build, buf lint, and buf generate are highlighted, along with troubleshooting steps for format issues. Buf's breaking change detection feature is also mentioned, which helps identify and manage changes that could impact microservices. Additionally, Buf allows for skipping breaking change checks by using a specific PR label, offering flexibility in managing Protobuf schemas. https://lnkd.in/gZ7T4rne
Incredible futures of buf to generate Protobuf, GitHub action
blog.devops.dev
To view or add a comment, sign in
-
𝟭. 𝗴𝗶𝘁 𝗱𝗶𝗳𝗳: Show file differences not yet staged. 𝟮. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 -𝗮 -𝗺 "𝗰𝗼𝗺𝗺𝗶𝘁 𝗺𝗲𝘀𝘀𝗮𝗴𝗲": Commit all tracked changes with a message. 𝟯. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘁𝘂𝘀: Show the state of your working directory. 𝟰. 𝗴𝗶𝘁 𝗮𝗱𝗱 𝗳𝗶𝗹𝗲_𝗽𝗮𝘁𝗵:Add file(s) to the staging area. 𝟱. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗰𝗸𝗼𝘂𝘁 -𝗯 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Create and switch to a new branch. 𝟲. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗰𝗸𝗼𝘂𝘁 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Switch to an existing branch. 𝟳. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 --𝗮𝗺𝗲𝗻𝗱:Modify the last commit. 𝟴. 𝗴𝗶𝘁 𝗽𝘂𝘀𝗵 𝗼𝗿𝗶𝗴𝗶𝗻 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Push a branch to a remote. 𝟵. 𝗴𝗶𝘁 𝗽𝘂𝗹𝗹: Fetch and merge remote changes. 𝟭𝟬. 𝗴𝗶𝘁 𝗿𝗲𝗯𝗮𝘀𝗲 -𝗶: Rebase interactively, rewrite commit history. 𝟭𝟭. 𝗴𝗶𝘁 𝗰𝗹𝗼𝗻𝗲: Create a local copy of a remote repo. 𝟭𝟮. 𝗴𝗶𝘁 𝗺𝗲𝗿𝗴𝗲: Merge branches together. 𝟭𝟯. 𝗴𝗶𝘁 𝗹𝗼𝗴 --𝘀𝘁𝗮𝘁: Show commit logs with stats. 𝟭𝟰. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘀𝗵: Stash changes for later. 𝟭𝟱. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘀𝗵 𝗽𝗼𝗽: Apply and remove stashed changes. 𝟭𝟲. 𝗴𝗶𝘁 𝘀𝗵𝗼𝘄 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Show details about a commit. 𝟭𝟳. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁 𝗛𝗘𝗔𝗗~𝟭: Undo the last commit, preserving changes locally. 𝟭𝟴. 𝗴𝗶𝘁 𝗳𝗼𝗿𝗺𝗮𝘁-𝗽𝗮𝘁𝗰𝗵 -𝟭 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Create a patch file for a specific commit. 𝟭𝟵. 𝗴𝗶𝘁 𝗮𝗽𝗽𝗹𝘆 𝗽𝗮𝘁𝗰𝗵_𝗳𝗶𝗹𝗲_𝗻𝗮𝗺𝗲: Apply changes from a patch file. 𝟮𝟬. 𝗴𝗶𝘁 𝗯𝗿𝗮𝗻𝗰𝗵 -𝗗 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Delete a branch forcefully. 𝟮𝟭. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁: Undo commits by moving branch reference. 𝟮𝟮. 𝗴𝗶𝘁 𝗿𝗲𝘃𝗲𝗿𝘁: Undo commits by creating a new commit. 𝟮𝟯. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗿𝗿𝘆-𝗽𝗶𝗰𝗸 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Apply changes from a specific commit. 𝟮𝟰. 𝗴𝗶𝘁 𝗯𝗿𝗮𝗻𝗰𝗵: Lists branches. 𝟮𝟱. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁 --𝗵𝗮𝗿𝗱: Resets everything to a previous commit, erasing all uncommitted changes.
To view or add a comment, sign in
-
𝟭. 𝗴𝗶𝘁 𝗱𝗶𝗳𝗳: Show file differences not yet staged. 𝟮. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 -𝗮 -𝗺 "𝗰𝗼𝗺𝗺𝗶𝘁 𝗺𝗲𝘀𝘀𝗮𝗴𝗲": Commit all tracked changes with a message. 𝟯. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘁𝘂𝘀: Show the state of your working directory. 𝟰. 𝗴𝗶𝘁 𝗮𝗱𝗱 𝗳𝗶𝗹𝗲_𝗽𝗮𝘁𝗵:Add file(s) to the staging area. 𝟱. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗰𝗸𝗼𝘂𝘁 -𝗯 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Create and switch to a new branch. 𝟲. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗰𝗸𝗼𝘂𝘁 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Switch to an existing branch. 𝟳. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 --𝗮𝗺𝗲𝗻𝗱:Modify the last commit. 𝟴. 𝗴𝗶𝘁 𝗽𝘂𝘀𝗵 𝗼𝗿𝗶𝗴𝗶𝗻 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Push a branch to a remote. 𝟵. 𝗴𝗶𝘁 𝗽𝘂𝗹𝗹: Fetch and merge remote changes. 𝟭𝟬. 𝗴𝗶𝘁 𝗿𝗲𝗯𝗮𝘀𝗲 -𝗶: Rebase interactively, rewrite commit history. 𝟭𝟭. 𝗴𝗶𝘁 𝗰𝗹𝗼𝗻𝗲: Create a local copy of a remote repo. 𝟭𝟮. 𝗴𝗶𝘁 𝗺𝗲𝗿𝗴𝗲: Merge branches together. 𝟭𝟯. 𝗴𝗶𝘁 𝗹𝗼𝗴 --𝘀𝘁𝗮𝘁: Show commit logs with stats. 𝟭𝟰. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘀𝗵: Stash changes for later. 𝟭𝟱. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘀𝗵 𝗽𝗼𝗽: Apply and remove stashed changes. 𝟭𝟲. 𝗴𝗶𝘁 𝘀𝗵𝗼𝘄 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Show details about a commit. 𝟭𝟳. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁 𝗛𝗘𝗔𝗗~𝟭: Undo the last commit, preserving changes locally. 𝟭𝟴. 𝗴𝗶𝘁 𝗳𝗼𝗿𝗺𝗮𝘁-𝗽𝗮𝘁𝗰𝗵 -𝟭 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Create a patch file for a specific commit. 𝟭𝟵. 𝗴𝗶𝘁 𝗮𝗽𝗽𝗹𝘆 𝗽𝗮𝘁𝗰𝗵_𝗳𝗶𝗹𝗲_𝗻𝗮𝗺𝗲: Apply changes from a patch file. 𝟮𝟬. 𝗴𝗶𝘁 𝗯𝗿𝗮𝗻𝗰𝗵 -𝗗 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Delete a branch forcefully. 𝟮𝟭. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁: Undo commits by moving branch reference. 𝟮𝟮. 𝗴𝗶𝘁 𝗿𝗲𝘃𝗲𝗿𝘁: Undo commits by creating a new commit. 𝟮𝟯. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗿𝗿𝘆-𝗽𝗶𝗰𝗸 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Apply changes from a specific commit. 𝟮𝟰. 𝗴𝗶𝘁 𝗯𝗿𝗮𝗻𝗰𝗵: Lists branches. 𝟮𝟱. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁 --𝗵𝗮𝗿𝗱: Resets everything to a previous commit, erasing all uncommitted changes
To view or add a comment, sign in
-
Git commands 𝟭. 𝗴𝗶𝘁 𝗱𝗶𝗳𝗳: Show file differences not yet staged. 𝟮. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 -𝗮 -𝗺 "𝗰𝗼𝗺𝗺𝗶𝘁 𝗺𝗲𝘀𝘀𝗮𝗴𝗲": Commit all tracked changes with a message. 𝟯. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘁𝘂𝘀: Show the state of your working directory. 𝟰. 𝗴𝗶𝘁 𝗮𝗱𝗱 𝗳𝗶𝗹𝗲_𝗽𝗮𝘁𝗵:Add file(s) to the staging area. 𝟱. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗰𝗸𝗼𝘂𝘁 -𝗯 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Create and switch to a new branch. 𝟲. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗰𝗸𝗼𝘂𝘁 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Switch to an existing branch. 𝟳. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 --𝗮𝗺𝗲𝗻𝗱:Modify the last commit. 𝟴. 𝗴𝗶𝘁 𝗽𝘂𝘀𝗵 𝗼𝗿𝗶𝗴𝗶𝗻 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Push a branch to a remote. 𝟵. 𝗴𝗶𝘁 𝗽𝘂𝗹𝗹: Fetch and merge remote changes. 𝟭𝟬. 𝗴𝗶𝘁 𝗿𝗲𝗯𝗮𝘀𝗲 -𝗶: Rebase interactively, rewrite commit history. 𝟭𝟭. 𝗴𝗶𝘁 𝗰𝗹𝗼𝗻𝗲: Create a local copy of a remote repo. 𝟭𝟮. 𝗴𝗶𝘁 𝗺𝗲𝗿𝗴𝗲: Merge branches together. 𝟭𝟯. 𝗴𝗶𝘁 𝗹𝗼𝗴 --𝘀𝘁𝗮𝘁: Show commit logs with stats. 𝟭𝟰. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘀𝗵: Stash changes for later. 𝟭𝟱. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘀𝗵 𝗽𝗼𝗽: Apply and remove stashed changes. 𝟭𝟲. 𝗴𝗶𝘁 𝘀𝗵𝗼𝘄 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Show details about a commit. 𝟭𝟳. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁 𝗛𝗘𝗔𝗗~𝟭: Undo the last commit, preserving changes locally. 𝟭𝟴. 𝗴𝗶𝘁 𝗳𝗼𝗿𝗺𝗮𝘁-𝗽𝗮𝘁𝗰𝗵 -𝟭 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Create a patch file for a specific commit. 𝟭𝟵. 𝗴𝗶𝘁 𝗮𝗽𝗽𝗹𝘆 𝗽𝗮𝘁𝗰𝗵_𝗳𝗶𝗹𝗲_𝗻𝗮𝗺𝗲: Apply changes from a patch file. 𝟮𝟬. 𝗴𝗶𝘁 𝗯𝗿𝗮𝗻𝗰𝗵 -𝗗 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Delete a branch forcefully. 𝟮𝟭. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁: Undo commits by moving branch reference. 𝟮𝟮. 𝗴𝗶𝘁 𝗿𝗲𝘃𝗲𝗿𝘁: Undo commits by creating a new commit. 𝟮𝟯. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗿𝗿𝘆-𝗽𝗶𝗰𝗸 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Apply changes from a specific commit. 𝟮𝟰. 𝗴𝗶𝘁 𝗯𝗿𝗮𝗻𝗰𝗵: Lists branches. 𝟮𝟱. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁 --𝗵𝗮𝗿𝗱: Resets everything to a previous commit, erasing all uncommitted changes.
To view or add a comment, sign in
-
Git commands: 𝟭. 𝗴𝗶𝘁 𝗱𝗶𝗳𝗳: Show file differences not yet staged. 𝟮. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 -𝗮 -𝗺 "𝗰𝗼𝗺𝗺𝗶𝘁 𝗺𝗲𝘀𝘀𝗮𝗴𝗲": Commit all tracked changes with a message. 𝟯. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘁𝘂𝘀: Show the state of your working directory. 𝟰. 𝗴𝗶𝘁 𝗮𝗱𝗱 𝗳𝗶𝗹𝗲_𝗽𝗮𝘁𝗵: Add file(s) to the staging area. 𝟱. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗰𝗸𝗼𝘂𝘁 -𝗯 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Create and switch to a new branch. 𝟲. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗰𝗸𝗼𝘂𝘁 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Switch to an existing branch. 𝟳. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 --𝗮𝗺𝗲𝗻𝗱: Modify the last commit. 𝟴. 𝗴𝗶𝘁 𝗽𝘂𝘀𝗵 𝗼𝗿𝗶𝗴𝗶𝗻 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Push a branch to a remote. 𝟵. 𝗴𝗶𝘁 𝗽𝘂𝗹𝗹: Fetch and merge remote changes. 𝟭𝟬. 𝗴𝗶𝘁 𝗿𝗲𝗯𝗮𝘀𝗲 -𝗶: Rebase interactively, rewrite commit history. 𝟭𝟭. 𝗴𝗶𝘁 𝗰𝗹𝗼𝗻𝗲: Create a local copy of a remote repo. 𝟭𝟮. 𝗴𝗶𝘁 𝗺𝗲𝗿𝗴𝗲: Merge branches together. 𝟭𝟯. 𝗴𝗶𝘁 𝗹𝗼𝗴 --𝘀𝘁𝗮𝘁: Show commit logs with stats. 𝟭𝟰. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘀𝗵: Stash changes for later. 𝟭𝟱. 𝗴𝗶𝘁 𝘀𝘁𝗮𝘀𝗵 𝗽𝗼𝗽: Apply and remove stashed changes. 𝟭𝟲. 𝗴𝗶𝘁 𝘀𝗵𝗼𝘄 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Show details about a commit. 𝟭𝟳. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁 𝗛𝗘𝗔𝗗~𝟭: Undo the last commit, preserving changes locally. 𝟭𝟴. 𝗴𝗶𝘁 𝗳𝗼𝗿𝗺𝗮𝘁-𝗽𝗮𝘁𝗰𝗵 -𝟭 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Create a patch file for a specific commit. 𝟭𝟵. 𝗴𝗶𝘁 𝗮𝗽𝗽𝗹𝘆 𝗽𝗮𝘁𝗰𝗵_𝗳𝗶𝗹𝗲_𝗻𝗮𝗺𝗲: Apply changes from a patch file. 𝟮𝟬. 𝗴𝗶𝘁 𝗯𝗿𝗮𝗻𝗰𝗵 -𝗗 𝗯𝗿𝗮𝗻𝗰𝗵_𝗻𝗮𝗺𝗲: Delete a branch forcefully. 𝟮𝟭. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁: Undo commits by moving branch reference. 𝟮𝟮. 𝗴𝗶𝘁 𝗿𝗲𝘃𝗲𝗿𝘁: Undo commits by creating a new commit. 𝟮𝟯. 𝗴𝗶𝘁 𝗰𝗵𝗲𝗿𝗿𝘆-𝗽𝗶𝗰𝗸 𝗰𝗼𝗺𝗺𝗶𝘁_𝗶𝗱: Apply changes from a specific commit. 𝟮𝟰. 𝗴𝗶𝘁 𝗯𝗿𝗮𝗻𝗰𝗵: Lists branches. 𝟮𝟱. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁 --𝗵𝗮𝗿𝗱: Resets everything to a previous commit, erasing all uncommitted changes.
To view or add a comment, sign in