{"id":2081,"date":"2017-01-12T13:24:02","date_gmt":"2017-01-12T12:24:02","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=2081"},"modified":"2017-01-12T13:24:02","modified_gmt":"2017-01-12T12:24:02","slug":"when-to-make-a-git-commit","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2017\/01\/12\/when-to-make-a-git-commit\/","title":{"rendered":"When to make a Git Commit"},"content":{"rendered":"<p><a href=\"https:\/\/dev.to\/gonedark\/when-to-make-a-git-commit\">https:\/\/dev.to\/gonedark\/when-to-make-a-git-commit<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">https:\/\/dev.to\/gonedark\/when-to-make-a-git-commit<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2017\/01\/12\/when-to-make-a-git-commit\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72],"tags":[139],"class_list":["post-2081","post","type-post","status-publish","format-link","hentry","category-documentations","tag-good-practices","post_format-post-format-link"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-xz","jetpack-related-posts":[{"id":915,"url":"https:\/\/monodes.com\/predaelli\/2016\/01\/21\/find-and-restore-a-deleted-file-in-a-git-repository\/","url_meta":{"origin":2081,"position":0},"title":"Find and restore a deleted file in a Git repository","author":"Paolo Redaelli","date":"2016-01-21","format":false,"excerpt":"Use git log --diff-filter=D --summary to get all the commits which have deleted files and the files deleted;Use git checkout $commit~1 filename to restore the deleted file. Sorgente: Find and restore a deleted file in a Git repository - Stack Overflow","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15483,"url":"https:\/\/monodes.com\/predaelli\/2026\/04\/10\/the-git-commands-i-run-before-reading-any-code\/","url_meta":{"origin":2081,"position":1},"title":"The Git Commands I Run Before Reading Any Code","author":"Paolo Redaelli","date":"2026-04-10","format":"link","excerpt":"The Git Commands I Run Before Reading Any Code What Changes the Most Who Built This Where Do Bugs Cluster Is This Project Accelerating or Dying How Often Is the Team Firefighting The Git Commands I Run Before Reading Any Code Five git commands that tell you where a codebase\u2026","rel":"","context":"In &quot;Tricks&quot;","block_context":{"text":"Tricks","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/tricks\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10940,"url":"https:\/\/monodes.com\/predaelli\/2023\/11\/03\/versioning-data-in-postgres-testing-a-git-like-approach-specfy\/","url_meta":{"origin":2081,"position":2},"title":"Versioning data in Postgres? Testing a git like approach &#8211; Specfy","author":"Paolo Redaelli","date":"2023-11-03","format":false,"excerpt":"Versioning data in Postgres? Testing a git like approach - Specfy is fashinating but I think that most of the time these two proposed alternatives fit most of the needs: In-Table versioning, the Wordpress way of doing thing. Add a a column version (or modify date) and SELECT the maximum\u2026","rel":"","context":"In &quot;Tricks&quot;","block_context":{"text":"Tricks","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/tricks\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11886,"url":"https:\/\/monodes.com\/predaelli\/2024\/09\/01\/git-copy-a-file-or-directory-from-another-repository-preserving-the-history\/","url_meta":{"origin":2081,"position":3},"title":"Git: Copy a file or directory from another repository preserving the history","author":"Paolo Redaelli","date":"2024-09-01","format":"quote","excerpt":"How to copy a file or directory from another GIT repository while preserving its history? Internet is full of magic formulas each one more complex. Here I\u2019m proposing a much simpler and faster one that is to make a git format-patch for the entire history of the file or subdirectory\u2026","rel":"","context":"In &quot;Tricks&quot;","block_context":{"text":"Tricks","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/tricks\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11688,"url":"https:\/\/monodes.com\/predaelli\/2024\/06\/01\/never-use-git-pull-youtube\/","url_meta":{"origin":2081,"position":4},"title":"Never* use git pull &#8211; YouTube","author":"Paolo Redaelli","date":"2024-06-01","format":"video","excerpt":"https:\/\/www.youtube.com\/watch?v=xN1-2p06Urc Just a quick summary mostly for myself: How to use git pull --rebase to keep your team's commit history clean. Command for creating the 'git pr' alias (so you can copy-paste): git config --global alias.pr \"pull --rebase\" Always try git pull --rebase first. It if works, you're done! If\u2026","rel":"","context":"In &quot;Tricks&quot;","block_context":{"text":"Tricks","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/tricks\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/xN1-2p06Urc\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1518,"url":"https:\/\/monodes.com\/predaelli\/2016\/05\/11\/master-of-cracking\/","url_meta":{"origin":2081,"position":5},"title":"Master of cracking","author":"Paolo Redaelli","date":"2016-05-11","format":false,"excerpt":"It seems that I'm a master in breaking automated tests. Do you think I can count it as a proficiency? :) Liberty Eiffel automated tests (Bell branch) Last update: 2016-05-11 11:44:02 +0200 (CEST) git pull failed (1) cd \/Liberty && git fetch origin && git checkout bell && git merge\u2026","rel":"","context":"In &quot;Eiffel&quot;","block_context":{"text":"Eiffel","link":"https:\/\/monodes.com\/predaelli\/category\/eiffel\/"},"img":{"alt_text":"liberty-light","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/05\/liberty-light-150x150-1.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/2081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=2081"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/2081\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=2081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=2081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=2081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}