You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🌤️
Head in the cloud; feet, too.
Olivier Jacques
ojacques
🌤️
Head in the cloud; feet, too.
Build | Fix | Repeat. Code👨💻, cloud 🌤️ @aws, paraglide 🪂 & band player 🎹
GIT: Squash commits inside a PR, before even merging
When you have a PR which has been here for some times, and master is very active, you will end up have lots of commits in your history when you get the changes from master.
To clean this up:
git fetch origin: get the latest from the repo
git checkout my_branch: go to your branch for pull request
git rebase origin/master: this will rebase the current branch with master
git push -f: force push, as we are rewriting history
Hubot: Execute ssh command asynchronously and provide nicely formatted output on slack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (aSlave inhudson.model.Hudson.instance.slaves) {
if (aSlave.getComputer().isOffline()) {
aSlave.getComputer().setTemporarilyOffline(true,null);
aSlave.getComputer().doDoDelete();
}