Lädt...


🔧 Git Squash on terminal


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

This week for lab 5, we were supposed to refactor the open source project that we have been working with. After a lot of contributions from others students, the code base was expanded and it was about time some refactoring was done.
So here I am refactoring the code and learning git's squash and merge feature at the same time. This lab was very open ended with how we wanted to refactor the code, So I decided to do it by making more functions, enhancing the variable names and lastly separating the logic into different files.

Making more functions

There was some logic that I felt can be extracted into functions. Like the logic responsible for parsing the TOML file.

Better variable names

After a lot of changes this past month, there were a lot of variables with similar name that resulted in some confusion. I updated those variable names in this commit.

Making more files

Finally, I took all the logic that was responsible for parsing the arguments and bundled it into a new args.js file, and updated the imports accordingly in the command.js file.

All of these changes were one commit and in total I made three commits for the three changes. After the coding part was done, I squashed using the git rebase main -i command which opened an interactive VIM editor for me to manage my squash. This resulted in a new commit that squashed all of my three commits. I then merged this to main and pushed it to origin.

I learned how to squash all of my different commits into one this week, until now I was relying on the githubs squash and merge feature while making PRs.

...

🔧 Git Squash on terminal


📈 37.46 Punkte
🔧 Programmierung

🔧 Git Squash! The terminal way


📈 37.46 Punkte
🔧 Programmierung

🔧 Difference Between Git Merge, Rebase and Squash


📈 29.12 Punkte
🔧 Programmierung

🔧 Git Merge: To Squash Or Fast-Forward?


📈 29.12 Punkte
🔧 Programmierung

🔧 Git Squash Commits – Squashing the Last N Commits into One Commit


📈 29.12 Punkte
🔧 Programmierung

🐧 How to Squash Commits in Git After They Have Been Pushed?


📈 29.12 Punkte
🐧 Linux Tipps

🔧 Git reset bằng terminal và extensions vscode cho git


📈 24.25 Punkte
🔧 Programmierung

🐧 Git-logger - A classic git punch-card in your terminal!


📈 24.25 Punkte
🐧 Linux Tipps

🔧 Ditch Git Checkout: Use Git Switch and Git Restore Instead


📈 23.87 Punkte
🔧 Programmierung

🔧 Restaurando e Alternando Branches com Git: Domine os Comandos git restore e git switch


📈 23.87 Punkte
🔧 Programmierung

🎥 Top Git Commands | Most Used Git Commands | Git Commands With Examples


📈 23.87 Punkte
🎥 Video | Youtube

🔧 git switch and git checkout – How to switch branches in git


📈 23.87 Punkte
🔧 Programmierung

🔧 Squash Merge


📈 21.16 Punkte
🔧 Programmierung

🐧 This week in KDE: We really hate bugs and we want to squash them all


📈 21.16 Punkte
🐧 Linux Tipps

🔧 Squash Your Ruby and Rails Bugs Faster


📈 21.16 Punkte
🔧 Programmierung

🕵️ Squash TM up to 1.18.0 Administration Panel ta-server-password Password information disclosure


📈 21.16 Punkte
🕵️ Sicherheitslücken

🔧 How, why and when to squash your commit history


📈 21.16 Punkte
🔧 Programmierung

📰 Adobe releases third patch update of the month to squash scripting bugs


📈 21.16 Punkte
📰 IT Security Nachrichten

📰 Google is Starting To Squash More Spam and AI in Search Results


📈 21.16 Punkte
📰 IT Security Nachrichten

🐧 Quick reminder: The Kdenlive team is hosting a bug-squash day on Sunday, December 2. Everybody can help


📈 21.16 Punkte
🐧 Linux Tipps

🪟 Squash some bugs at the first Windows Insider Bug Bash of 2024


📈 21.16 Punkte
🪟 Windows Tipps

📰 Facebook Expands Efforts to Squash Voter Suppression


📈 21.16 Punkte
📰 IT Security Nachrichten

🍏 Fresh iOS, watchOS and macOS patches launch to squash bugs


📈 21.16 Punkte
🍏 iOS / Mac OS

📰 Adobe releases patch out of schedule to squash critical code execution bug


📈 21.16 Punkte
📰 IT Security Nachrichten

🍏 Compress images without losing quality with Squash app


📈 21.16 Punkte
🍏 iOS / Mac OS

📰 Windows 10 Build 17763 Released As Microsoft Continues to Squash Bugs


📈 21.16 Punkte
📰 IT Security Nachrichten

🐧 The Krita 2018 Fundraiser Starts: Squash the Bugs!


📈 21.16 Punkte
🐧 Linux Tipps

🔧 How to Close a Pull Request - Merge Commit vs Squash vs Rebase on GitHub


📈 21.16 Punkte
🔧 Programmierung

📰 Like my new wheels? All I did was squash a bug, and they gave me $72k


📈 21.16 Punkte
📰 IT Security Nachrichten

📰 Google, Apple squash exploitable browser bugs


📈 21.16 Punkte
📰 IT Security Nachrichten

matomo