{"id":3951,"date":"2019-01-24T17:15:52","date_gmt":"2019-01-24T15:15:52","guid":{"rendered":"https:\/\/www.systemcodegeeks.com\/?p=3951"},"modified":"2019-01-24T11:32:23","modified_gmt":"2019-01-24T09:32:23","slug":"some-bash-functions-git","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/","title":{"rendered":"Some bash functions for git"},"content":{"rendered":"\n<p>Here some git related functions in my <code>.bachrc<\/code>. Is mostly a backup for me, but it might also be useful for someone else.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cloning a git repo<\/h2>\n\n\n\n<p>Because I usually clone repos from my github account, this is a shortcut that allows me to just type <code>clone *repo_name*<\/code> and it will create the URL.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">function clone {\n\n        if [ $# -eq 0 ]; then\n            echo \"Please enter repo name or full url:\";\n            read repo;\n            clone $repo;\n        elif [[ $1 == --help ]] || [[ $1 == --h ]] || [[ $1 == --? ]]; then\n            echo \"This will clone a git repo.\";\n            echo \"\";\n            echo \"Option 1: You can just provide the name, eg:\";\n            echo \"$ clone membership\";\n            echo \"This will do: git clone https:\/\/github.com\/phillip-kruger\/membership.git\";\n            echo \"\";\n            echo \"Option 2: Provide the full URL\";\n            echo \"$ clone https:\/\/github.com\/smallrye\/smallrye-rest-client.git\";\n            echo \"This will do: git clone https:\/\/github.com\/smallrye\/smallrye-rest-client.git\";\n        else    \n            if [[ $1 == https:\/\/* ]] || [[ $1 == git:\/\/* ]] || [[ $1 == ssh:\/\/* ]] ; then\n                URL=$1;\n            else\n                URL='https:\/\/github.com\/phillip-kruger\/'$1'.git';\n            fi    \n\n            echo git clone \"$URL\";\n            git clone \"$URL\";\n        fi\n    }\n\n    export -f clone<\/pre>\n\n\n\n<p><strong>Usage:<\/strong><\/p>\n\n\n\n<p><code>clone *reponame*<\/code> &#8211; this will go to my github account<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_1-1024x257.gif\" alt=\"bash functions\" class=\"wp-image-3954\" width=\"820\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_1-1024x257.gif 1024w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_1-300x75.gif 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_1-768x193.gif 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p><code>clone *url*<\/code> &#8211; clone the repo at the url<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_2-1024x257.gif\" alt=\"bash functions\" class=\"wp-image-3956\" width=\"820\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_2-1024x257.gif 1024w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_2-300x75.gif 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_2-768x193.gif 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p><code>clone<\/code> &#8211; will ask for the repo name or url<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_3-1024x257.gif\" alt=\"bash functions\" class=\"wp-image-3957\" width=\"820\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_3-1024x257.gif 1024w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_3-300x75.gif 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/clone_3-768x193.gif 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Syncing your fork to upstream<\/h2>\n\n\n\n<p>If you contribute to projects, and you are working against your own fork, this is a handy way to keep you fork in sync with changes in the upstream master.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">function sync {\n\n        if git remote -v | grep -q 'upstream'; then\n            echo \"upstream exist\";\n        else\n            echo \"Please enter the upstream git url:\";\n            read url;\n            git remote add upstream \"$url\"\n        fi\n\n        git remote -v\n        git fetch upstream\n        git pull upstream master\n        git checkout master\n        git rebase upstream\/master\n    }\n\n    export -f sync<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/sync-1024x263.gif\" alt=\"bash functions\" class=\"wp-image-3958\" width=\"820\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/sync-1024x263.gif 1024w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/sync-300x77.gif 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/sync-768x197.gif 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Commit<\/h2>\n\n\n\n<p>Normal <code>commit<\/code>, but adding <code>-s<\/code> to include your signature.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">function commit {\n\n        if [ $# -eq 0 ]; then\n            echo \"Please enter a commit message:\";\n            read msg;\n            commit \"$msg\";\n        elif [[ $1 == --help ]] || [[ $1 == --h ]] || [[ $1 == --? ]]; then\n            echo \"This will commit changes to a local git repo, eg:\";\n            echo \"$ commit 'some changes made'\";\n            echo \"This will do: git commit -s -m 'some changes made'\";\n        else    \n            echo git commit -s -a -m \"$1\"\n            git commit -s -a -m \"$1\";\n        fi\n    }\n\n    export -f commit<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/sync-1-1024x263.gif\" alt=\"bash functions\" class=\"wp-image-3959\" width=\"820\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/sync-1-1024x263.gif 1024w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/sync-1-300x77.gif 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2019\/01\/sync-1-768x197.gif 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>\n<p>Published on System Code Geeks with permission by Phillip Kr\u00fcger, partner at our <a href=\"\/\/www.systemcodegeeks.com\/join-us\/scg\/\" target=\"_blank\" rel=\"noopener\">SCG program<\/a>. See the original article here: <a href=\"https:\/\/www.phillip-kruger.com\/post\/some_bash_functions_for_git\/\" target=\"_blank\" rel=\"noopener\">Some bash functions for git<\/a><\/p>\n<p>Opinions expressed by System Code Geeks contributors are their own.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here some git related functions in my .bachrc. Is mostly a backup for me, but it might also be useful for someone else. Cloning a git repo Because I usually clone repos from my github account, this is a shortcut that allows me to just type clone *repo_name* and it will create the URL. function &hellip;<\/p>\n","protected":false},"author":3921,"featured_media":185,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[167],"class_list":["post-3951","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash","tag-git"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Some bash functions for git - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Interested to learn more about bash functions? Check our article introducing through examples some bush functions for git.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Some bash functions for git - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Interested to learn more about bash functions? Check our article introducing through examples some bush functions for git.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-24T15:15:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Phillip Kr\u00fcger\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Phillip Kr\u00fcger\" \/>\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:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/\"},\"author\":{\"name\":\"Phillip Kr\u00fcger\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/4c962c268402d5e03af3d97715c5e55c\"},\"headline\":\"Some bash functions for git\",\"datePublished\":\"2019-01-24T15:15:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/\"},\"wordCount\":160,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"keywords\":[\"git\"],\"articleSection\":[\"BASH\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/\",\"name\":\"Some bash functions for git - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"datePublished\":\"2019-01-24T15:15:52+00:00\",\"description\":\"Interested to learn more about bash functions? Check our article introducing through examples some bush functions for git.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shell Scripting\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"BASH\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Some bash functions for git\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/4c962c268402d5e03af3d97715c5e55c\",\"name\":\"Phillip Kr\u00fcger\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/38e989af8597679e556461deb73f4044c27d0228a28f9971d2ac37794b1b8603?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/38e989af8597679e556461deb73f4044c27d0228a28f9971d2ac37794b1b8603?s=96&d=mm&r=g\",\"caption\":\"Phillip Kr\u00fcger\"},\"description\":\"Phillip is a software developer and a systems architect who knacks for solving problems. He has a passion for clean code and evolutionary architecture. He blogs about all technical things.\",\"sameAs\":[\"https:\/\/www.phillip-kruger.com\/\",\"https:\/\/www.linkedin.com\/in\/phillipkruger\/\"],\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/phillip-kruger\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Some bash functions for git - System Code Geeks - 2026","description":"Interested to learn more about bash functions? Check our article introducing through examples some bush functions for git.","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:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/","og_locale":"en_US","og_type":"article","og_title":"Some bash functions for git - System Code Geeks - 2026","og_description":"Interested to learn more about bash functions? Check our article introducing through examples some bush functions for git.","og_url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_published_time":"2019-01-24T15:15:52+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","type":"image\/jpeg"}],"author":"Phillip Kr\u00fcger","twitter_card":"summary_large_image","twitter_creator":"@systemcodegeeks","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Phillip Kr\u00fcger","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/"},"author":{"name":"Phillip Kr\u00fcger","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/4c962c268402d5e03af3d97715c5e55c"},"headline":"Some bash functions for git","datePublished":"2019-01-24T15:15:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/"},"wordCount":160,"commentCount":0,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","keywords":["git"],"articleSection":["BASH"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/","url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/","name":"Some bash functions for git - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","datePublished":"2019-01-24T15:15:52+00:00","description":"Interested to learn more about bash functions? Check our article introducing through examples some bush functions for git.","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/bash-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/some-bash-functions-git\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Shell Scripting","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/"},{"@type":"ListItem","position":3,"name":"BASH","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/"},{"@type":"ListItem","position":4,"name":"Some bash functions for git"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/4c962c268402d5e03af3d97715c5e55c","name":"Phillip Kr\u00fcger","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/38e989af8597679e556461deb73f4044c27d0228a28f9971d2ac37794b1b8603?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/38e989af8597679e556461deb73f4044c27d0228a28f9971d2ac37794b1b8603?s=96&d=mm&r=g","caption":"Phillip Kr\u00fcger"},"description":"Phillip is a software developer and a systems architect who knacks for solving problems. He has a passion for clean code and evolutionary architecture. He blogs about all technical things.","sameAs":["https:\/\/www.phillip-kruger.com\/","https:\/\/www.linkedin.com\/in\/phillipkruger\/"],"url":"https:\/\/www.systemcodegeeks.com\/author\/phillip-kruger\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/3951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/3921"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=3951"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/3951\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/185"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=3951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=3951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=3951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}