[{"data":1,"prerenderedAt":758},["ShallowReactive",2],{"\u002Farticles\u002Fkumpulan-perintah-git-git-cheat-sheet":3,"\u002Farticles\u002Fkumpulan-perintah-git-git-cheat-sheet-surroundings":752},{"id":4,"title":5,"author":6,"body":7,"createdAt":731,"description":732,"extension":733,"img":734,"meta":735,"navigation":737,"path":738,"publishedAt":739,"readingTime":740,"seo":745,"stem":746,"tags":747,"updatedAt":750,"__hash__":751},"articles\u002Farticles\u002F1.kumpulan-perintah-git-git-cheat-sheet.md","Kumpulan Perintah Git (Git Cheat Sheet)","Rendi Okriza Putra",{"type":8,"value":9,"toc":719},"minimark",[10,14,19,22,54,57,87,90,108,111,115,118,127,130,139,141,145,148,157,160,176,179,188,191,200,203,220,223,244,247,251,254,263,266,287,290,299,302,311,314,326,329,333,336,346,349,364,367,385,388,397,400,409,412,416,419,434,437,446,449,458,461,470,473,482,485,489,492,501,504,524,527,531,534,543,546,555,558,567,570,579,582,586,589,598,601,632,635,656,659,663,666,691,694,712,715],[11,12,13],"p",{},"Git adalah sistem kontrol versi terdistribusi gratis dan open source yang bertanggung jawab atas semua GitHub terkait yang terjadi secara lokal di komputer Anda. Lembar contekan ini menampilkan yang paling penting dan umum menggunakan perintah Git untuk referensi mudah.",[15,16,18],"h2",{"id":17},"setup","SETUP",[11,20,21],{},"Mengonfigurasi informasi pengguna yang digunakan di semua repositori lokal",[23,24,29],"pre",{"className":25,"code":26,"language":27,"meta":28,"style":28},"language-cmd shiki shiki-themes one-dark-pro","git config --global user.name “[firstname lastname]”\n","cmd","",[30,31,32],"code",{"__ignoreMap":28},[33,34,37,41,45,48,51],"span",{"class":35,"line":36},"line",1,[33,38,40],{"class":39},"sn6KH","git ",[33,42,44],{"class":43},"sVyAn","config",[33,46,47],{"class":39}," --",[33,49,50],{"class":43},"global",[33,52,53],{"class":39}," user.name “[firstname lastname]”\n",[11,55,56],{},"set a name that is identifiable for credit when review version history",[23,58,60],{"className":25,"code":59,"language":27,"meta":28,"style":28},"git config --global user.email “[valid-email]”\n",[30,61,62],{"__ignoreMap":28},[33,63,64,66,68,70,72,75,78,81,84],{"class":35,"line":36},[33,65,40],{"class":39},[33,67,44],{"class":43},[33,69,47],{"class":39},[33,71,50],{"class":43},[33,73,74],{"class":39}," user.email “[",[33,76,77],{"class":43},"valid",[33,79,80],{"class":39},"-",[33,82,83],{"class":43},"email",[33,85,86],{"class":39},"]”\n",[11,88,89],{},"set an email address that will be associated with each history marker",[23,91,93],{"className":25,"code":92,"language":27,"meta":28,"style":28},"git config --global color.ui auto\n",[30,94,95],{"__ignoreMap":28},[33,96,97,99,101,103,105],{"class":35,"line":36},[33,98,40],{"class":39},[33,100,44],{"class":43},[33,102,47],{"class":39},[33,104,50],{"class":43},[33,106,107],{"class":39}," color.ui auto\n",[11,109,110],{},"set automatic command line coloring for Git for easy reviewing",[15,112,114],{"id":113},"setup-init","SETUP & INIT",[11,116,117],{},"Mengonfigurasi informasi pengguna, menginisialisasi, dan mengkloning repositori",[23,119,121],{"className":25,"code":120,"language":27,"meta":28,"style":28},"git init\n",[30,122,123],{"__ignoreMap":28},[33,124,125],{"class":35,"line":36},[33,126,120],{"class":39},[11,128,129],{},"initialize an existing directory as a Git repository",[23,131,133],{"className":25,"code":132,"language":27,"meta":28,"style":28},"git clone [url]\n",[30,134,135],{"__ignoreMap":28},[33,136,137],{"class":35,"line":36},[33,138,132],{"class":39},[11,140,129],{},[15,142,144],{"id":143},"stage-snapshot","STAGE & SNAPSHOT",[11,146,147],{},"Bekerja dengan snapshot dan area pementasan Git",[23,149,151],{"className":25,"code":150,"language":27,"meta":28,"style":28},"git status\n",[30,152,153],{"__ignoreMap":28},[33,154,155],{"class":35,"line":36},[33,156,150],{"class":39},[11,158,159],{},"show modified files in working directory, staged for your next commit",[23,161,163],{"className":25,"code":162,"language":27,"meta":28,"style":28},"git add [file]\n",[30,164,165],{"__ignoreMap":28},[33,166,167,169,173],{"class":35,"line":36},[33,168,40],{"class":39},[33,170,172],{"class":171},"sjrmR","add",[33,174,175],{"class":39}," [file]\n",[11,177,178],{},"add a file as it looks now to your next commit (stage)",[23,180,182],{"className":25,"code":181,"language":27,"meta":28,"style":28},"git reset [file]\n",[30,183,184],{"__ignoreMap":28},[33,185,186],{"class":35,"line":36},[33,187,181],{"class":39},[11,189,190],{},"unstage a file while retaining the changes in working directory",[23,192,194],{"className":25,"code":193,"language":27,"meta":28,"style":28},"git diff\n",[30,195,196],{"__ignoreMap":28},[33,197,198],{"class":35,"line":36},[33,199,193],{"class":39},[11,201,202],{},"diff of what is changed but not staged",[23,204,206],{"className":25,"code":205,"language":27,"meta":28,"style":28},"git diff --staged\n",[30,207,208],{"__ignoreMap":28},[33,209,210,212,215,217],{"class":35,"line":36},[33,211,40],{"class":39},[33,213,214],{"class":43},"diff",[33,216,47],{"class":39},[33,218,219],{"class":43},"staged\n",[11,221,222],{},"diff of what is staged but not yet commited",[23,224,226],{"className":25,"code":225,"language":27,"meta":28,"style":28},"git commit -m “[descriptive message]”\n",[30,227,228],{"__ignoreMap":28},[33,229,230,232,235,238,241],{"class":35,"line":36},[33,231,40],{"class":39},[33,233,234],{"class":43},"commit",[33,236,237],{"class":39}," -",[33,239,240],{"class":43},"m",[33,242,243],{"class":39}," “[descriptive message]”\n",[11,245,246],{},"commit your staged content as a new commit snapshot",[15,248,250],{"id":249},"branch-merge","BRANCH & MERGE",[11,252,253],{},"Mengisolasi pekerjaan di cabang, mengubah konteks, dan mengintegrasikan perubahan",[23,255,257],{"className":25,"code":256,"language":27,"meta":28,"style":28},"git branch\n",[30,258,259],{"__ignoreMap":28},[33,260,261],{"class":35,"line":36},[33,262,256],{"class":39},[11,264,265],{},"list your branches. a * will appear next to the currently active branch",[23,267,269],{"className":25,"code":268,"language":27,"meta":28,"style":28},"git branch [branch-name]\n",[30,270,271],{"__ignoreMap":28},[33,272,273,276,279,281,284],{"class":35,"line":36},[33,274,275],{"class":39},"git branch [",[33,277,278],{"class":43},"branch",[33,280,80],{"class":39},[33,282,283],{"class":43},"name",[33,285,286],{"class":39},"]\n",[11,288,289],{},"create a new branch at the current commit",[23,291,293],{"className":25,"code":292,"language":27,"meta":28,"style":28},"git checkout\n",[30,294,295],{"__ignoreMap":28},[33,296,297],{"class":35,"line":36},[33,298,292],{"class":39},[11,300,301],{},"switch to another branch and check it out into your working directory",[23,303,305],{"className":25,"code":304,"language":27,"meta":28,"style":28},"git merge [branch]\n",[30,306,307],{"__ignoreMap":28},[33,308,309],{"class":35,"line":36},[33,310,304],{"class":39},[11,312,313],{},"merge the specified branch’s history into the current one",[23,315,317],{"className":25,"code":316,"language":27,"meta":28,"style":28},"git log\n",[30,318,319],{"__ignoreMap":28},[33,320,321,323],{"class":35,"line":36},[33,322,40],{"class":39},[33,324,325],{"class":171},"log\n",[11,327,328],{},"show all commits in the current branch’s history",[15,330,332],{"id":331},"inspect-compare","INSPECT & COMPARE",[11,334,335],{},"Memeriksa log, perbedaan, dan informasi objek",[23,337,338],{"className":25,"code":316,"language":27,"meta":28,"style":28},[30,339,340],{"__ignoreMap":28},[33,341,342,344],{"class":35,"line":36},[33,343,40],{"class":39},[33,345,325],{"class":171},[11,347,348],{},"show the commit history for the currently active branch",[23,350,352],{"className":25,"code":351,"language":27,"meta":28,"style":28},"git log branchB..branchA\n",[30,353,354],{"__ignoreMap":28},[33,355,356,358,361],{"class":35,"line":36},[33,357,40],{"class":39},[33,359,360],{"class":171},"log",[33,362,363],{"class":39}," branchB..branchA\n",[11,365,366],{},"show the commits on branchA that are not on branchB",[23,368,370],{"className":25,"code":369,"language":27,"meta":28,"style":28},"git log --follow [file]\n",[30,371,372],{"__ignoreMap":28},[33,373,374,376,378,380,383],{"class":35,"line":36},[33,375,40],{"class":39},[33,377,360],{"class":171},[33,379,47],{"class":39},[33,381,382],{"class":43},"follow",[33,384,175],{"class":39},[11,386,387],{},"show the commits that changed file, even across renames",[23,389,391],{"className":25,"code":390,"language":27,"meta":28,"style":28},"git diff branchB...branchA\n",[30,392,393],{"__ignoreMap":28},[33,394,395],{"class":35,"line":36},[33,396,390],{"class":39},[11,398,399],{},"show the diff of what is in branchA that is not in branchB",[23,401,403],{"className":25,"code":402,"language":27,"meta":28,"style":28},"git show [SHA]\n",[30,404,405],{"__ignoreMap":28},[33,406,407],{"class":35,"line":36},[33,408,402],{"class":39},[11,410,411],{},"show any object in Git in human-readable format",[15,413,415],{"id":414},"share-update","SHARE & UPDATE",[11,417,418],{},"Mengambil pembaruan dari repositori lain dan memperbarui repo lokal",[23,420,422],{"className":25,"code":421,"language":27,"meta":28,"style":28},"git remote add [alias] [url]\n",[30,423,424],{"__ignoreMap":28},[33,425,426,429,431],{"class":35,"line":36},[33,427,428],{"class":39},"git remote ",[33,430,172],{"class":171},[33,432,433],{"class":39}," [alias] [url]\n",[11,435,436],{},"add a git URL as an alias",[23,438,440],{"className":25,"code":439,"language":27,"meta":28,"style":28},"git fetch [alias]\n",[30,441,442],{"__ignoreMap":28},[33,443,444],{"class":35,"line":36},[33,445,439],{"class":39},[11,447,448],{},"fetch down all the branches from that Git remote",[23,450,452],{"className":25,"code":451,"language":27,"meta":28,"style":28},"git merge [alias]\u002F[branch]\n",[30,453,454],{"__ignoreMap":28},[33,455,456],{"class":35,"line":36},[33,457,451],{"class":39},[11,459,460],{},"merge a remote branch into your current branch to bring it up to date",[23,462,464],{"className":25,"code":463,"language":27,"meta":28,"style":28},"git push [alias] [branch]\n",[30,465,466],{"__ignoreMap":28},[33,467,468],{"class":35,"line":36},[33,469,463],{"class":39},[11,471,472],{},"Transmit local branch commits to the remote repository branch",[23,474,476],{"className":25,"code":475,"language":27,"meta":28,"style":28},"git pull\n",[30,477,478],{"__ignoreMap":28},[33,479,480],{"class":35,"line":36},[33,481,475],{"class":39},[11,483,484],{},"fetch and merge any commits from the tracking remote branch",[15,486,488],{"id":487},"rewrite-history","REWRITE HISTORY",[11,490,491],{},"Menulis ulang cabang, memperbarui komit, dan menghapus riwayat",[23,493,495],{"className":25,"code":494,"language":27,"meta":28,"style":28},"git rebase [branch]\n",[30,496,497],{"__ignoreMap":28},[33,498,499],{"class":35,"line":36},[33,500,494],{"class":39},[11,502,503],{},"apply any commits of current branch ahead of specified one",[23,505,507],{"className":25,"code":506,"language":27,"meta":28,"style":28},"git reset --hard [commit]\n",[30,508,509],{"__ignoreMap":28},[33,510,511,513,516,518,521],{"class":35,"line":36},[33,512,40],{"class":39},[33,514,515],{"class":43},"reset",[33,517,47],{"class":39},[33,519,520],{"class":43},"hard",[33,522,523],{"class":39}," [commit]\n",[11,525,526],{},"clear staging area, rewrite working tree from specified commit",[15,528,530],{"id":529},"temporary-commits","TEMPORARY COMMITS",[11,532,533],{},"Menyimpan sementara file yang dimodifikasi dan dilacak untuk mengubah cabang",[23,535,537],{"className":25,"code":536,"language":27,"meta":28,"style":28},"git stash\n",[30,538,539],{"__ignoreMap":28},[33,540,541],{"class":35,"line":36},[33,542,536],{"class":39},[11,544,545],{},"Save modified and staged changes",[23,547,549],{"className":25,"code":548,"language":27,"meta":28,"style":28},"git stash list\n",[30,550,551],{"__ignoreMap":28},[33,552,553],{"class":35,"line":36},[33,554,548],{"class":39},[11,556,557],{},"list stack-order of stashed file changes",[23,559,561],{"className":25,"code":560,"language":27,"meta":28,"style":28},"git stash pop\n",[30,562,563],{"__ignoreMap":28},[33,564,565],{"class":35,"line":36},[33,566,560],{"class":39},[11,568,569],{},"write working from top of stash stack",[23,571,573],{"className":25,"code":572,"language":27,"meta":28,"style":28},"git stash drop\n",[30,574,575],{"__ignoreMap":28},[33,576,577],{"class":35,"line":36},[33,578,572],{"class":39},[11,580,581],{},"discard the changes from top of stash stack",[15,583,585],{"id":584},"tracking-path-changes","TRACKING PATH CHANGES",[11,587,588],{},"Penghapusan file versi dan perubahan jalur",[23,590,592],{"className":25,"code":591,"language":27,"meta":28,"style":28},"git rm [file]\n",[30,593,594],{"__ignoreMap":28},[33,595,596],{"class":35,"line":36},[33,597,591],{"class":39},[11,599,600],{},"delete the file from project and stage the removal for commit",[23,602,604],{"className":25,"code":603,"language":27,"meta":28,"style":28},"git mv [existing-path] [new-path]\n",[30,605,606],{"__ignoreMap":28},[33,607,608,611,614,616,619,622,626,628,630],{"class":35,"line":36},[33,609,610],{"class":39},"git mv [",[33,612,613],{"class":43},"existing",[33,615,80],{"class":39},[33,617,618],{"class":43},"path",[33,620,621],{"class":39},"] [",[33,623,625],{"class":624},"seHd6","new",[33,627,80],{"class":39},[33,629,618],{"class":43},[33,631,286],{"class":39},[11,633,634],{},"change an existing file path and stage the move",[23,636,638],{"className":25,"code":637,"language":27,"meta":28,"style":28},"git log --stat -M\n",[30,639,640],{"__ignoreMap":28},[33,641,642,644,646,648,651,653],{"class":35,"line":36},[33,643,40],{"class":39},[33,645,360],{"class":171},[33,647,47],{"class":39},[33,649,650],{"class":43},"stat",[33,652,237],{"class":39},[33,654,655],{"class":43},"M\n",[11,657,658],{},"show all commit logs with indication of any paths that moved",[15,660,662],{"id":661},"ignoring-patterns","IGNORING PATTERNS",[11,664,665],{},"Mencegah pementasan atau pengkomitan file yang tidak disengaja",[23,667,669],{"className":25,"code":668,"language":27,"meta":28,"style":28},"logs\u002F\n*.notes\npattern*\u002F\n",[30,670,671,679,685],{"__ignoreMap":28},[33,672,673,676],{"class":35,"line":36},[33,674,675],{"class":43},"logs",[33,677,678],{"class":39},"\u002F\n",[33,680,682],{"class":35,"line":681},2,[33,683,684],{"class":39},"*.notes\n",[33,686,688],{"class":35,"line":687},3,[33,689,690],{"class":39},"pattern*\u002F\n",[11,692,693],{},"Save a file with desired paterns as .gitignore with either direct string\nmatches or wildcard globs.",[23,695,697],{"className":25,"code":696,"language":27,"meta":28,"style":28},"git config --global core.excludesfile [file]\n",[30,698,699],{"__ignoreMap":28},[33,700,701,703,705,707,709],{"class":35,"line":36},[33,702,40],{"class":39},[33,704,44],{"class":43},[33,706,47],{"class":39},[33,708,50],{"class":43},[33,710,711],{"class":39}," core.excludesfile [file]\n",[11,713,714],{},"system wide ignore patern for all local repositories",[716,717,718],"style",{},"html pre.shiki code .sn6KH, html code.shiki .sn6KH{--shiki-default:#ABB2BF}html pre.shiki code .sVyAn, html code.shiki .sVyAn{--shiki-default:#E06C75}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sjrmR, html code.shiki .sjrmR{--shiki-default:#56B6C2}html pre.shiki code .seHd6, html code.shiki .seHd6{--shiki-default:#C678DD}",{"title":28,"searchDepth":681,"depth":681,"links":720},[721,722,723,724,725,726,727,728,729,730],{"id":17,"depth":681,"text":18},{"id":113,"depth":681,"text":114},{"id":143,"depth":681,"text":144},{"id":249,"depth":681,"text":250},{"id":331,"depth":681,"text":332},{"id":414,"depth":681,"text":415},{"id":487,"depth":681,"text":488},{"id":529,"depth":681,"text":530},{"id":584,"depth":681,"text":585},{"id":661,"depth":681,"text":662},"Mei 27, 2023","Git adalah sistem kontrol versi terdistribusi gratis dan open source yang bertanggung jawab atas semua GitHub terkait yang terjadi secara lokal di komputer Anda.","md","\u002Fimage\u002Farticle\u002Fgit-cheat-sheet.png",{"layout":736},"blog",true,"\u002Farticles\u002Fkumpulan-perintah-git-git-cheat-sheet","2023-05-27",{"text":741,"minutes":742,"time":743,"words":744},"3 min read",2.63,157800,526,{"title":5,"description":732},"articles\u002F1.kumpulan-perintah-git-git-cheat-sheet",[748,749],"git","github","Mei 28, 2023","0HcY1TA1RD1HXjojra0MRTNcRv-NhebTK-cSXFDpkYs",[753,754],null,{"title":755,"path":756,"stem":757,"children":-1},"Laravel API Response Formatter","\u002Farticles\u002Flaravel-api-response-formatter","articles\u002F2.laravel-api-response-formatter",1780235711693]