{"id":43,"date":"2024-01-26T14:30:42","date_gmt":"2024-01-26T13:30:42","guid":{"rendered":"http:\/\/144.21.34.1\/?p=43"},"modified":"2024-02-05T12:09:34","modified_gmt":"2024-02-05T11:09:34","slug":"de-meest-gebruikte-git-commandos","status":"publish","type":"post","link":"https:\/\/daik.nl\/?p=43&lang=nl","title":{"rendered":"De Meest Gebruikte Git Commando&#8217;s"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>In de wereld van softwareontwikkeling is Git een onmisbaar instrument geworden voor het beheren van versiecontrole. Het stelt ontwikkelaars in staat om samen te werken aan projecten, wijzigingen bij te houden en code op een georganiseerde manier te beheren. In deze blog gaan we dieper in op de meest gebruikte Git commando&#8217;s en leggen we uit wat deze doen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <code>git init<\/code><\/h3>\n\n\n\n<p>Dit commando wordt gebruikt om een nieuw Git-repository te initialiseren in een bestaande map. Wanneer je begint aan een nieuw project, gebruik je <code>git init<\/code> om een Git-repository op te zetten.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git init<\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. <code>git clone<\/code><\/h3>\n\n\n\n<p>Met <code>git clone<\/code> kun je een bestaand Git-repository klonen. Dit is handig als je wilt bijdragen aan een open-sourceproject of als je een kopie van een bestaand project wilt maken.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git clone &lt;repository-url><\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. <code>git add<\/code><\/h3>\n\n\n\n<p>Het <code>git add<\/code> commando voegt wijzigingen toe aan de staging area. Dit betekent dat je aangeeft welke bestanden je wilt opnemen in de volgende commit.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git add &lt;bestandsnaam><\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. <code>git commit<\/code><\/h3>\n\n\n\n<p>Met <code>git commit<\/code> worden de wijzigingen in de staging area vastgelegd in het Git-repository. Je voegt ook een commit-boodschap toe om de gemaakte wijzigingen te beschrijven.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git commit -m \"Jouw commit-boodschap hier\"<\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. <code>git pull<\/code><\/h3>\n\n\n\n<p><code>git pull<\/code> wordt gebruikt om de nieuwste wijzigingen van de remote repository op te halen en deze samen te voegen met je lokale repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git pull<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. <code>git push<\/code><\/h3>\n\n\n\n<p><code>git push<\/code> wordt gebruikt om de lokale commits naar de remote repository te pushen. Hiermee deel je jouw wijzigingen met anderen.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git push<\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. <code>git branch<\/code><\/h3>\n\n\n\n<p>Met <code>git branch<\/code> kun je nieuwe branches maken of bestaande branches bekijken. Branches helpen bij het georganiseerd ontwikkelen van functies of bugfixes zonder de hoofdcode te be\u00efnvloeden.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git branch &lt;branch-naam><\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8. <code>git merge<\/code><\/h3>\n\n\n\n<p>Het <code>git merge<\/code> commando wordt gebruikt om wijzigingen van een andere branch samen te voegen met de huidige branch.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git merge &lt;branch-naam><\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">9. <code>git status<\/code><\/h3>\n\n\n\n<p>Dit commando geeft de huidige status van je Git-repository weer, inclusief de wijzigingen die nog niet zijn toegevoegd aan de staging area.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git status<\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">10. <code>git log<\/code><\/h3>\n\n\n\n<p><code>git log<\/code> geeft een overzicht van alle commits in je repository, inclusief commit-hash, auteur, datum en commit-boodschap.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>git log<\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Dit zijn enkele van de meest gebruikte Git commando&#8217;s die je zullen helpen bij het beheren van versiecontrole in je projecten. Door deze commando&#8217;s te begrijpen en effectief te gebruiken, kun je de ontwikkeling van software gestructureerd en gecontroleerd benaderen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>De meest gebruikte Git commando&#8217;s in 1 overzicht<\/p>\n","protected":false},"author":1,"featured_media":108,"comment_status":"open","ping_status":"open","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[76,51],"tags":[107,84,101,103,105],"class_list":["post-43","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-nl","category-zonder-categorie-nl","tag-add","tag-commando-nl","tag-git","tag-pull","tag-push"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>De Meest Gebruikte Git Commando&#039;s - DAIK<\/title>\n<meta name=\"description\" content=\"Een overzicht van de meest gebruikte Git commando&#039;s met uitleg.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/daik.nl\/?p=43&lang=nl\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"De Meest Gebruikte Git Commando&#039;s - DAIK\" \/>\n<meta property=\"og:description\" content=\"Een overzicht van de meest gebruikte Git commando&#039;s met uitleg.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/daik.nl\/?p=43&amp;lang=nl\" \/>\n<meta property=\"og:site_name\" content=\"DAIK\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-26T13:30:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-05T11:09:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"daik01\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"daik01\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl#article\",\"isPartOf\":{\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl\"},\"author\":{\"name\":\"daik01\",\"@id\":\"https:\/\/daik.nl\/#\/schema\/person\/519bc4684d9c8c0cec1a6caa9b65412a\"},\"headline\":\"De Meest Gebruikte Git Commando&#8217;s\",\"datePublished\":\"2024-01-26T13:30:42+00:00\",\"dateModified\":\"2024-02-05T11:09:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl\"},\"wordCount\":333,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/daik.nl\/#organization\"},\"image\":{\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl#primaryimage\"},\"thumbnailUrl\":\"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg\",\"keywords\":[\"add\",\"commando\",\"Git\",\"pull\",\"push\"],\"articleSection\":[\"Linux\",\"Zonder categorie\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/daik.nl\/?p=43&lang=nl#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl\",\"url\":\"https:\/\/daik.nl\/?p=43&lang=nl\",\"name\":\"De Meest Gebruikte Git Commando's - DAIK\",\"isPartOf\":{\"@id\":\"https:\/\/daik.nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl#primaryimage\"},\"image\":{\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl#primaryimage\"},\"thumbnailUrl\":\"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg\",\"datePublished\":\"2024-01-26T13:30:42+00:00\",\"dateModified\":\"2024-02-05T11:09:34+00:00\",\"description\":\"Een overzicht van de meest gebruikte Git commando's met uitleg.\",\"breadcrumb\":{\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/daik.nl\/?p=43&lang=nl\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl#primaryimage\",\"url\":\"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg\",\"contentUrl\":\"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg\",\"width\":400,\"height\":400,\"caption\":\"logo git\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/daik.nl\/?p=43&lang=nl#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/daik.nl\/?lang=nl\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"De Meest Gebruikte Git Commando&#8217;s\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/daik.nl\/#website\",\"url\":\"https:\/\/daik.nl\/\",\"name\":\"DAIK\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/daik.nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/daik.nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/daik.nl\/#organization\",\"name\":\"DAIK\",\"url\":\"https:\/\/daik.nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/daik.nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/logo.png\",\"contentUrl\":\"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/logo.png\",\"width\":576,\"height\":600,\"caption\":\"DAIK\"},\"image\":{\"@id\":\"https:\/\/daik.nl\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/daik.nl\/#\/schema\/person\/519bc4684d9c8c0cec1a6caa9b65412a\",\"name\":\"daik01\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/daik.nl\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1d92ef146a58720c38ca892f2c6e166e850669a89d08af16f01ec96c118e7000?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1d92ef146a58720c38ca892f2c6e166e850669a89d08af16f01ec96c118e7000?s=96&d=identicon&r=g\",\"caption\":\"daik01\"},\"sameAs\":[\"http:\/\/daik.nl\"],\"url\":\"https:\/\/daik.nl\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"De Meest Gebruikte Git Commando's - DAIK","description":"Een overzicht van de meest gebruikte Git commando's met uitleg.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/daik.nl\/?p=43&lang=nl","og_locale":"en_US","og_type":"article","og_title":"De Meest Gebruikte Git Commando's - DAIK","og_description":"Een overzicht van de meest gebruikte Git commando's met uitleg.","og_url":"https:\/\/daik.nl\/?p=43&lang=nl","og_site_name":"DAIK","article_published_time":"2024-01-26T13:30:42+00:00","article_modified_time":"2024-02-05T11:09:34+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg","type":"image\/jpeg"}],"author":"daik01","twitter_card":"summary_large_image","twitter_misc":{"Written by":"daik01","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/daik.nl\/?p=43&lang=nl#article","isPartOf":{"@id":"https:\/\/daik.nl\/?p=43&lang=nl"},"author":{"name":"daik01","@id":"https:\/\/daik.nl\/#\/schema\/person\/519bc4684d9c8c0cec1a6caa9b65412a"},"headline":"De Meest Gebruikte Git Commando&#8217;s","datePublished":"2024-01-26T13:30:42+00:00","dateModified":"2024-02-05T11:09:34+00:00","mainEntityOfPage":{"@id":"https:\/\/daik.nl\/?p=43&lang=nl"},"wordCount":333,"commentCount":0,"publisher":{"@id":"https:\/\/daik.nl\/#organization"},"image":{"@id":"https:\/\/daik.nl\/?p=43&lang=nl#primaryimage"},"thumbnailUrl":"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg","keywords":["add","commando","Git","pull","push"],"articleSection":["Linux","Zonder categorie"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/daik.nl\/?p=43&lang=nl#respond"]}]},{"@type":"WebPage","@id":"https:\/\/daik.nl\/?p=43&lang=nl","url":"https:\/\/daik.nl\/?p=43&lang=nl","name":"De Meest Gebruikte Git Commando's - DAIK","isPartOf":{"@id":"https:\/\/daik.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/daik.nl\/?p=43&lang=nl#primaryimage"},"image":{"@id":"https:\/\/daik.nl\/?p=43&lang=nl#primaryimage"},"thumbnailUrl":"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg","datePublished":"2024-01-26T13:30:42+00:00","dateModified":"2024-02-05T11:09:34+00:00","description":"Een overzicht van de meest gebruikte Git commando's met uitleg.","breadcrumb":{"@id":"https:\/\/daik.nl\/?p=43&lang=nl#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/daik.nl\/?p=43&lang=nl"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/daik.nl\/?p=43&lang=nl#primaryimage","url":"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg","contentUrl":"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/th-2.jpg","width":400,"height":400,"caption":"logo git"},{"@type":"BreadcrumbList","@id":"https:\/\/daik.nl\/?p=43&lang=nl#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/daik.nl\/?lang=nl"},{"@type":"ListItem","position":2,"name":"De Meest Gebruikte Git Commando&#8217;s"}]},{"@type":"WebSite","@id":"https:\/\/daik.nl\/#website","url":"https:\/\/daik.nl\/","name":"DAIK","description":"","publisher":{"@id":"https:\/\/daik.nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/daik.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/daik.nl\/#organization","name":"DAIK","url":"https:\/\/daik.nl\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/daik.nl\/#\/schema\/logo\/image\/","url":"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/logo.png","contentUrl":"https:\/\/daik.nl\/wp-content\/uploads\/2024\/01\/logo.png","width":576,"height":600,"caption":"DAIK"},"image":{"@id":"https:\/\/daik.nl\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/daik.nl\/#\/schema\/person\/519bc4684d9c8c0cec1a6caa9b65412a","name":"daik01","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/daik.nl\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1d92ef146a58720c38ca892f2c6e166e850669a89d08af16f01ec96c118e7000?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1d92ef146a58720c38ca892f2c6e166e850669a89d08af16f01ec96c118e7000?s=96&d=identicon&r=g","caption":"daik01"},"sameAs":["http:\/\/daik.nl"],"url":"https:\/\/daik.nl\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/daik.nl\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daik.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daik.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daik.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daik.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":2,"href":"https:\/\/daik.nl\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/daik.nl\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/109"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/daik.nl\/index.php?rest_route=\/wp\/v2\/media\/108"}],"wp:attachment":[{"href":"https:\/\/daik.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daik.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daik.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}