{"version":"1.0","provider_name":"Alex's Arsenal (Shop)","provider_url":"https:\/\/aleksanderbekasov24.thkit.ee\/wp\/ru","author_name":"admin","author_url":"https:\/\/aleksanderbekasov24.thkit.ee\/wp\/ru\/blog\/author\/admin\/","title":"Git CMD Configuration: - Alex's Arsenal (Shop)","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"USIe68JgxP\"><a href=\"https:\/\/aleksanderbekasov24.thkit.ee\/wp\/ru\/git-cmd-kasurida\/\">Git CMD Configuration:<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/aleksanderbekasov24.thkit.ee\/wp\/ru\/git-cmd-kasurida\/embed\/#?secret=USIe68JgxP\" width=\"600\" height=\"338\" title=\"\u00abGit CMD Configuration:\u00bb &#8212; Alex&#039;s Arsenal (Shop)\" data-secret=\"USIe68JgxP\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script>\n\/*! This file is auto-generated *\/\n!function(d,l){\"use strict\";l.querySelector&&d.addEventListener&&\"undefined\"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),o=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),c=new RegExp(\"^https?:$\",\"i\"),i=0;i<o.length;i++)o[i].style.display=\"none\";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute(\"style\"),\"height\"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):\"link\"===t.message&&(r=new URL(s.getAttribute(\"src\")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",function(){for(var e,t,s=l.querySelectorAll(\"iframe.wp-embedded-content\"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute(\"data-secret\"))||(t=Math.random().toString(36).substring(2,12),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t)),e.contentWindow.postMessage({message:\"ready\",secret:t},\"*\")},!1)))}(window,document);\n\/\/# sourceURL=https:\/\/aleksanderbekasov24.thkit.ee\/wp\/wp-includes\/js\/wp-embed.min.js\n<\/script>","description":"git config &#8211;global user.name \u201cAleksander Bekasov\u201d git config &#8211;global user.email \u201calekbekasov@&#8230;\u201d Configuration Check: git config user.namegit config user.emailgit config --global --list Cloning a Git Repository: git clone O:TARGV24tund1Git Check User Status: git status Creating a Branch \/ Creating a New Branch: git branch AleksanderB Switching Branches: git checkout AleksanderB Deleting a Branch: git branch -d IrinaM Adding Files: git add . Committing Changes with a Comment: git commit -a -m \u201cname added\u201d Uploading Changes to the Server: git pushgit push --set-upstream origin AleksanderB Pull the file added later from the server: git pull origin main Creating a New Repo: git init \u201crepoName\u201d GitHub Book Link: Git Book Initialize Git in the Current Folder: git init Set the Username for the Current Repository: git config user.name Stage All New, Modified, and Deleted Files: git add -A Check the Compact Version of the Status for Repository: git status --short Commit the Updated Files Directly (Skip Staging): git commit -a -m \"New line\" View the Commit History for the Repository: git log Show Possible Options for the status Command in Command Line: git status --help Show All Git Commands in the Command Line: git help --all Create a New Branch Called hello-world: git branch hello-world List Existing Branches: git branch Switch to the hello-world Branch: git checkout hello-world Create and Switch to a New Branch Named hello: git checkout -b hello Merge the hello-you Branch with the Current Branch: git merge hello-you Remove the hello-you Branch from the Local Repository: git branch -d hello-you Add a Remote Repository as an Origin: git remote add origin https:\/\/github.com\/x\/y.git pull is a Combination of: Fetch All Change History from the Origin for This Branch: git fetch origin Merge the Current Branch with the master Branch on Origin: git merge origin\/master Update the Current Branch from Its Origin Using a Single Command: git pull origin Push the Current Branch to Its Default Remote origin: git push origin List All Local and Remote Branches of the Current Git: git branch -a List Only Remote Branches of the Current Git: git branch -r Clone the Repository https:\/\/abc.com\/x\/y.git to Your Local Git: git clone https:\/\/abc.com\/x\/y.git Clone the Repository https:\/\/abc.com\/x\/y.git to a Folder Named &#8220;newlife&#8221;: git clone https:\/\/abc.com\/x\/y.git newlife Rename the origin Remote to upstream: git remote rename origin upstream In .gitignore, Add a Line to Ignore All .temp Files: *.temp In .gitignore, Add a Line to Ignore All Files in Any Directory Named temp: temp\/ In .gitignore, Add a Single Line to Ignore All Files Named temp1.log, temp2.log, and temp3.log: temp?.log In .gitignore, Ignore All .log Files Except main.log: *.log!main.log Add a New Remote Named ssh-origin Connecting to x\/y.git on abc.com Using SSH: git remote add ssh-origin git@abc.com:x\/y.git Replace the Remote URL for origin with x\/y.git on abc.com Using SSH: git remote set-url origin git@abc.com:x\/y.git Show the Log of the Repository, Showing Just 1 Line per Commit: git log --oneline Revert the Latest Commit: git revert HEAD Revert the Latest Commit, Skipping the Commit Message Editor: git revert HEAD --no-edit Revert the Two Last Commits: git revert HEAD~1 Reset to the Commit with the Hash abc1234: git reset abc1234 Amend the Previous Commit with the Message &#8220;Updated index&#8221;: git commit --amend -m \"Updated index\""}