{"id":14450,"date":"2023-03-17T16:35:53","date_gmt":"2023-03-17T14:35:53","guid":{"rendered":"https:\/\/www.ihs.com.tr\/blog\/?p=14450"},"modified":"2023-03-17T16:35:53","modified_gmt":"2023-03-17T14:35:53","slug":"populer-git-komutlari","status":"publish","type":"post","link":"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/","title":{"rendered":"Bilmeniz Gereken Pop\u00fcler Git Komutlar\u0131"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Git, kaynak kodu y\u00f6netimi i\u00e7in \u00fccretsiz kullan\u0131lan a\u00e7\u0131k kaynakl\u0131 kontrol s\u00fcr\u00fcm\u00fcd\u00fcr.<\/span><b> Git komutlar\u0131<\/b><span style=\"font-weight: 400;\">, kaynak koddaki de\u011fi\u015fiklikleri izlemek amac\u0131yla kullan\u0131l\u0131r. K\u0131saca a\u00e7\u0131klamak gerekirse; bir t\u00fcr versiyon komut sistemidir. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Versiyon komut sistemi demek; proje \u00fczerinde yap\u0131lan her de\u011fi\u015fikli\u011fi tek tek kay\u0131t eden ve dilerseniz bunu da internet \u00fczerinde saklaman\u0131z\u0131 sa\u011flayan demektir. Ayr\u0131ca Git &#8216;in &#8220;Client&#8221; dedi\u011fimiz her bir i\u015flemcisi, en son olu\u015fturulan dosyay\u0131 kontrol etmekle kalmaz, t\u00fcm ge\u00e7mi\u015fi de tamamen kopyalar. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Burada kopyalanan her bir kopya, t\u00fcm yede\u011fin bir klonudur. Bu \u015fekilde i\u015fleyen sistem sayesinde, herhangi bir sunucu \u00e7\u00f6kerse, i\u015flemci depolar\u0131ndan herhangi biri bu sunucudaki verileri kopyalamak i\u00e7in geri y\u00fckleyebilir. Bu sebeple de <\/span><b>git komutlar\u0131<\/b><span style=\"font-weight: 400;\">, da\u011f\u0131n\u0131k versiyon komut sistemi olarak da ge\u00e7er. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Git ile komut sat\u0131r\u0131nda \u00e7al\u0131\u015fmak biraz \u00fcrk\u00fct\u00fcc\u00fc gibi g\u00f6r\u00fcnse de <\/span><b>git komutlar\u0131<\/b><span style=\"font-weight: 400;\"> kullanmak kritik \u00f6nem ta\u015f\u0131maktad\u0131r. \u00c7\u00fcnk\u00fc, Git ile bir projede \u00e7al\u0131\u015f\u0131rken eski haline ula\u015fabilmenize olanak sa\u011flarken yapt\u0131\u011f\u0131n\u0131z de\u011fi\u015fiklikleri de g\u00f6rmenize yard\u0131mc\u0131 olur. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Bu \u015fekilde de projenin her bir noktas\u0131na rahatl\u0131kla eri\u015febilirsiniz. Git &#8216;in bir di\u011fer avantaj\u0131 da proje i\u00e7erisinde birden fazla kullan\u0131c\u0131n\u0131n ayn\u0131 anda \u00e7al\u0131\u015fabilmesine olanak tan\u0131mas\u0131d\u0131r. Bu t\u00fcr avantajlar\u0131 sayesinde proje \u00fczerinde daha verimli ve h\u0131zl\u0131 \u00e7al\u0131\u015fmaya yard\u0131mc\u0131 olmaktad\u0131r. <\/span><\/p>\n<p>Bu makalede git i\u00e7in kullanabilece\u011finiz en pop\u00fcler git komutlar\u0131n\u0131 a\u00e7\u0131klamaya \u00e7al\u0131\u015faca\u011f\u0131z.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_77 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0130\u00e7erik Tablosu<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f5b00fefd42\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\" id=\"ez-toc-cssicon-toggle-item-69f5b00fefd42\" aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#GitHub-ve-Git-Arasindaki-Farklar\" >GitHub ve Git Aras\u0131ndaki Farklar<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#Git-Nasil-Calisir\" >Git Nas\u0131l \u00c7al\u0131\u015f\u0131r?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#Populer-Git-Komutlari\" >Pop\u00fcler Git Komutlar\u0131<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-config\" >git config<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-init\" >git init<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-clone\" >git clone<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-add\" >git add<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-commit\" >git commit<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-diff\" >git diff\u00a0\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-reset\" >git reset<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-status\" >git status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-rm\" >git rm<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-log\" >git log<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-show\" >git show<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-tag\" >git tag<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-branch\" >git branch<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-checkout\" >git checkout<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-merge\" >git merge<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-remote\" >git remote<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-push\" >git push<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-pull\" >git pull<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/www.ihs.com.tr\/blog\/populer-git-komutlari\/#git-stash\" >git stash<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"GitHub-ve-Git-Arasindaki-Farklar\"><\/span><b>GitHub ve Git Aras\u0131ndaki Farklar<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.ihs.com.tr\/blog\/github-nedir-ve-nasil-kullanilir\/\" target=\"_blank\" rel=\"noopener\">GitHub<\/a> bilgisayar\u0131n\u0131z ya da sunucunuz d\u0131\u015f\u0131nda Git projenizi izlemenizi ve bu projeyi payla\u015fabilmenizi sa\u011flayan \u00e7evrimi\u00e7i depolama alan\u0131d\u0131r. Git &#8216;ten farkl\u0131 olarak GitHub bulut tabanl\u0131d\u0131r. Bu sayede yetkili olan ki\u015fi herhangi bir \u00fclkeden ve herhangi bir bilgisayardan Git komutlar\u0131na eri\u015fim sa\u011flayabilmektedir.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Git-Nasil-Calisir\"><\/span><b>Git Nas\u0131l \u00c7al\u0131\u015f\u0131r?<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Neredeyse t\u00fcm i\u015flemleri local makine \u00fczerinde ger\u00e7ekle\u015ftiren Git, rakibi olan \u00fcr\u00fcnlere nazaran b\u00fcy\u00fck avantajlar sa\u011flar. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Git ve <\/span><b>git komutlar\u0131<\/b><span style=\"font-weight: 400;\"> sayesinde projelerin ad\u0131m ad\u0131m versiyonlar\u0131n\u0131 kopyalayarak ihtiya\u00e7 duydu\u011funuz anda bu kopyalara geri d\u00f6nmenize yard\u0131mc\u0131 olur. Ayn\u0131 zamanda proje b\u00f6l\u00fcmleyerek her bir dal\u0131 farkl\u0131 bir ki\u015fiye y\u00f6nlendirilmesini ve b\u00f6ylece bir\u00e7ok ki\u015finin ayn\u0131 proje \u00fczerinde \u00e7al\u0131\u015fmas\u0131na olanak tan\u0131r. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">A\u015fa\u011f\u0131daki b\u00f6l\u00fcmde en \u00e7ok kullan\u0131lan <\/span><b>git komutlar\u0131<\/b><span style=\"font-weight: 400;\"> listesine eri\u015febilir ve bu komutlar\u0131n ne ama\u00e7la kullan\u0131ld\u0131\u011f\u0131n\u0131 \u00f6\u011frenebilirsiniz.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Populer-Git-Komutlari\"><\/span>Pop\u00fcler Git Komutlar\u0131<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img decoding=\"async\" class=\"size-full wp-image-14455 alignnone\" src=\"https:\/\/www.ihs.com.tr\/blog\/wp-content\/uploads\/2023\/03\/git-komutlari.png\" alt=\"git-komutlari\" width=\"700\" height=\"394\" srcset=\"https:\/\/www.ihs.com.tr\/blog\/wp-content\/uploads\/2023\/03\/git-komutlari.png 700w, https:\/\/www.ihs.com.tr\/blog\/wp-content\/uploads\/2023\/03\/git-komutlari-300x169.png 300w, https:\/\/www.ihs.com.tr\/blog\/wp-content\/uploads\/2023\/03\/git-komutlari-585x329.png 585w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-config\"><\/span><b>git config<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Bu komut<\/span><b> git komutlar\u0131<\/b><span style=\"font-weight: 400;\"> ile ili\u015fkili olan yazar ad\u0131 ve e-posta yap\u0131land\u0131rmak i\u00e7in kullan\u0131l\u0131r. Buradaki ama\u00e7; yap\u0131lan de\u011fi\u015fikliklerin hangi kullan\u0131c\u0131 taraf\u0131ndan ger\u00e7ekle\u015ftirildi\u011fini g\u00f6r\u00fcnt\u00fclemektir. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git config \u2013global user.name \u201c[name]\u201d <\/strong><\/p>\n<p><strong>git config \u2013global user.email \u201c[email address]\u201d\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-init\"><\/span><b>git init<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Localde <\/span><b>git komutlar\u0131<\/b><span style=\"font-weight: 400;\"> entegrasyonunuzu ba\u015flatman\u0131z\u0131 sa\u011flar. Yani, yeni bir depo ba\u015flatmak amac\u0131yla kullan\u0131l\u0131r. Bunu yapt\u0131\u011f\u0131n\u0131z yerde .git uzant\u0131l\u0131 bir klas\u00f6r olu\u015fmaktad\u0131r. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131:<\/strong><\/p>\n<p><strong> git init [repository name]\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-clone\"><\/span><b>git clone<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Bu komut ile mevcut bir URL adresinden bir havuz elde etmek amac\u0131yla kullan\u0131l\u0131r. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git clone [url]\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-add\"><\/span><b>git add<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Projenizi ya da belirledi\u011finiz bir dosyan\u0131z\u0131 \u00e7al\u0131\u015fma dizinine eklemek amac\u0131yla kullan\u0131l\u0131r. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Kullan\u0131m\u0131: <\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git add [file]<\/strong>\u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0Bir adet ekleme.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git add *<\/strong>\u00a0 \u00a0<\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0Birden fazla ekleme.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-commit\"><\/span><b>git commit<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Commit &#8216;in kelime anlam\u0131 i\u015faretlemedir. Git &#8216;e ekledi\u011finiz dosyalar\u0131 kal\u0131c\u0131 olarak veri taban\u0131nda i\u015faretlemenizi sa\u011flar. Bu komut ile haz\u0131rlama alan\u0131na ald\u0131\u011f\u0131n\u0131z de\u011fi\u015fiklikleri yerel depoya y\u00fcklemek i\u00e7in kullan\u0131l\u0131r. De\u011fi\u015fiklikleri y\u00fcklerken commit&#8217;e mesaj eklemek yarar\u0131n\u0131za olacakt\u0131r. Bu sayede \u00fczerinden belli bir zaman ge\u00e7se bile yapt\u0131\u011f\u0131n\u0131z de\u011fi\u015fiklikleri anlaman\u0131za ve i\u015flemlerinizi h\u0131zland\u0131rman\u0131za yard\u0131mc\u0131 olur. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git commit -m \u201c[ Type in the commit message]\u201d\u00a0<\/strong><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0\u0130lk kay\u0131t komutunu girin git commit -a\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-diff\"><\/span><b>git diff\u00a0\u00a0<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Dosyada yap\u0131lan t\u00fcm de\u011fi\u015fiklikleri g\u00f6steren komuttur. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git diff git diff \u2013staged<\/strong>\u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 Haz\u0131rlama dosyas\u0131 ile son s\u00fcr\u00fcm aras\u0131ndaki de\u011fi\u015fiklikleri g\u00f6sterir. <\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git diff [first branch] [second branch]<\/strong>\u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0Bahsedilen iki dosya aras\u0131ndaki fark\u0131 g\u00f6sterir.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-reset\"><\/span><b>git reset<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Buradaki reset i\u015flemi ile bilgileriniz silinmeden ve yeni bir commit \u00fcretmeden de\u011fi\u015fiklikleri geri alabilirsiniz. Dosya a\u015famas\u0131n\u0131 kald\u0131r\u0131r fakat ayn\u0131 zamanda i\u00e7eri\u011fini korur. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git reset [file] git reset [commit]\u00a0 <\/strong><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0Belirtilen commit &#8216;ten sonrakileri geri al\u0131r ve de\u011fi\u015fiklikleri yerel olarak korur. <\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git reset \u2013hard [commit]<\/strong>\u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\"> Local t\u00fcm commit &#8216;leri silerek geri alma i\u015flemi ger\u00e7ekle\u015ftirir. Bu sebeple dikkatli kullanmak gerekir.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-status\"><\/span><b>git status<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Dosyalar\u0131n durumunu g\u00f6steren komuttur. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git status\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-rm\"><\/span><b>git rm<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u00c7al\u0131\u015fma dizinindeki belirli bir dosyan\u0131n silinmesi i\u00e7in kullan\u0131l\u0131r. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git rm [file]\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-log\"><\/span><b>git log<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Commit kay\u0131tlar\u0131n\u0131n g\u00f6r\u00fcnt\u00fclendi\u011fi ve listelendi\u011fi komut t\u00fcr\u00fcd\u00fcr. S\u0131ralamay\u0131 tarihsel olarak sondan ba\u015fa do\u011fru yazd\u0131r\u0131r. Tek ba\u015f\u0131na kullan\u0131ld\u0131\u011f\u0131nda biraz s\u0131k\u0131c\u0131 hal alsa da baz\u0131 parametrelerle kullan\u0131ld\u0131\u011f\u0131 taktirde olduk\u00e7a i\u015flevseldir. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git log git log \u2013follow[file]<\/strong>\u00a0 \u00a0<\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 bir dosyan\u0131n s\u00fcr\u00fcm ge\u00e7mi\u015fini listeler\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-show\"><\/span><b>git show<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Belirtilen commit &#8216;in meta verilerini ve i\u00e7eri\u011findeki de\u011fi\u015fiklikleri g\u00f6sterir. <\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Kullan\u0131m\u0131:<\/strong> <\/span><\/p>\n<p><strong>git show [commit]\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-tag\"><\/span><b>git tag<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Commit &#8216;leri etiketleme i\u015flemidir. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git tag [commitID]\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-branch\"><\/span><b>git branch<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Bu komut sayesinde projenizi dallara ay\u0131rabileceksiniz. Bir \u00f6rnekle a\u00e7\u0131klamak gerekirse: Diyelim ki; yay\u0131nda olan bir projeniz mevcut ve bu projede yenilikler yapman\u0131z gerekiyor. Yay\u0131na \u00e7\u0131kan k\u0131s\u0131mda hi\u00e7 de\u011fi\u015fiklik yapmadan ekleyece\u011finiz s\u00fcr\u00fcm \u00e7al\u0131\u015f\u0131yor mu denemek istediniz.\u00a0 <\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0130\u015fte bu tarz durumlarda &#8220;branch&#8221; komutu devreye girecektir. B\u00f6ylece yay\u0131nda olan bir projeyi riske atmadan yeniliklerin \u00e7al\u0131\u015f\u0131p \u00e7al\u0131\u015fmad\u0131\u011f\u0131n\u0131 g\u00f6r\u00fcnt\u00fcleme \u015fans\u0131n\u0131 elde edeceksiniz. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git branch git branch [branch name]<\/strong>\u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0Yeni bir dal olu\u015fturur.<\/span><\/p>\n<p><strong> git branch -d [branch name]\u00a0 <\/strong><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 Olu\u015fturulan \u00f6zellik dal\u0131n\u0131 siler.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-checkout\"><\/span><b>git checkout<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Olu\u015fturulan bir daldan di\u011fer dala ge\u00e7mek i\u00e7in kullan\u0131l\u0131r. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git checkout [branch name] git checkout -b [branch name]<\/strong>\u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0yeni bir dal olu\u015fturarak bu dala ge\u00e7i\u015f yapar.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-merge\"><\/span><b>git merge<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Belirtilen bir dal\u0131 mevcut ba\u015fka bir dal ile birle\u015ftirmek i\u00e7in kullan\u0131l\u0131r. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git merge [branch name]\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-remote\"><\/span><b>git remote<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Yerel git deponuzu uzak bir sunucuya ba\u011flamak i\u00e7in kullan\u0131l\u0131r.<\/span><\/p>\n<p><strong> Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git remote add [variable name] [Remote Server Link]\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-push\"><\/span><b>git push<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Yerel commit &#8216;leri uzak depoya g\u00f6ndermek i\u00e7in kullan\u0131lan komuttur. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git push [variable name] master git push [variable name] [branch]<\/strong>\u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0Belli bir \u015fubeyi uzak depoya g\u00f6nderir.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong> git push \u2013all [variable name]<\/strong>\u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0T\u00fcm dallar\u0131 uzak sunucuya g\u00f6nderir.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-pull\"><\/span><b>git pull<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Uzakta olan sunucudaki de\u011fi\u015fiklikleri \u00e7al\u0131\u015fma dizinine getirerek birle\u015ftirir. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><strong>git pull [Repository Link]\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"git-stash\"><\/span><b>git stash<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u00dczerinde \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131z fakat hen\u00fcz commit etmedi\u011finiz de\u011fi\u015fiklikleri ge\u00e7ici olarak kay\u0131t alt\u0131na alan komuttur. B\u00f6ylece aktif branch &#8216;lar\u0131n\u0131zda herhangi bir de\u011fi\u015fiklik yapmadan korursunuz. Ge\u00e7ici kaydetme i\u015flemi sayesinde kar\u0131\u015f\u0131kl\u0131\u011fa da yer vermemi\u015f olacaks\u0131n\u0131z. <\/span><\/p>\n<p><strong>Kullan\u0131m\u0131: <\/strong><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git stash save<\/strong>\u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 De\u011fi\u015ftirilen t\u00fcm dosyalar\u0131 ge\u00e7ici saklar.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>git stash pop<\/strong>\u00a0 <\/span><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 En son olu\u015fturdu\u011funuz de\u011fi\u015fikli\u011fi geri y\u00fckler ve listeden siler. <\/span><\/p>\n<p><strong>git stash list\u00a0 <\/strong><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 Saklanan t\u00fcm de\u011fi\u015fiklikleri listeler.<\/span><\/p>\n<p><strong>git stash drop\u00a0 <\/strong><span style=\"font-weight: 400;\">\u21d2<\/span><span style=\"font-weight: 400;\">\u00a0 Herhangi bir de\u011fi\u015fikli\u011fi listeden silmek amac\u0131yla kullan\u0131l\u0131r. \u00a0 <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Yukar\u0131da bahsetti\u011fimiz t\u00fcm <\/span><b>git komutlar\u0131<\/b><span style=\"font-weight: 400;\"> kullan\u0131m\u0131n\u0131n a\u00e7\u0131klamalar\u0131n\u0131 sizler i\u00e7in en basit halde anlatmaya \u00e7al\u0131\u015ft\u0131k. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Bu <\/span><b>git komutlar\u0131<\/b><span style=\"font-weight: 400;\"> kullan\u0131lmaya ba\u015flamadan \u00f6nce sisteminizde &#8220;Git&#8221; kurulu olmal\u0131 veya &#8220;GitHub&#8221; hesab\u0131n\u0131z mevcut olmal\u0131d\u0131r. \u00a0 \u00a0 \u00a0\u00a0<\/span><\/p>\n<p><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git, kaynak kodu y\u00f6netimi i\u00e7in \u00fccretsiz kullan\u0131lan a\u00e7\u0131k kaynakl\u0131 kontrol s\u00fcr\u00fcm\u00fcd\u00fcr. Git komutlar\u0131, kaynak koddaki de\u011fi\u015fiklikleri izlemek amac\u0131yla kullan\u0131l\u0131r. K\u0131saca a\u00e7\u0131klamak gerekirse;&hellip;<\/p>\n","protected":false},"author":3,"featured_media":14453,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[417],"tags":[],"class_list":["post-14450","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-yazilim"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=14450"}],"version-history":[{"count":3,"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14450\/revisions"}],"predecessor-version":[{"id":14456,"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14450\/revisions\/14456"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/media\/14453"}],"wp:attachment":[{"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=14450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=14450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ihs.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=14450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}