{"id":67564,"date":"2021-07-25T04:10:04","date_gmt":"2021-07-25T08:10:04","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/experimenting-with-git-git\/"},"modified":"2021-07-25T04:10:04","modified_gmt":"2021-07-25T08:10:04","slug":"experimenting-with-git-git","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=67564","title":{"rendered":"Experimenting with GIT #Git"},"content":{"rendered":"<p>Was doing some experiments with Git and gitignore<\/p>\n<p>The following worked to achieve what I was trying to achieve&#8230;all the images and all the unnecessary files in the var folder were being tracked&#8230; <\/p>\n<p>&#8220;To untrack a single file that has already been added\/initialized to your repository, i.e., stop tracking the file but not delete it from your system use: git rm &#8211;cached filename<\/p>\n<p>To untrack every file that is now in your .gitignore:<\/p>\n<p>First commit any outstanding code changes, and then, run this command:<\/p>\n<p>git rm -r &#8211;cached .<\/p>\n<p>This removes any changed files from the index(staging area), then just run:<\/p>\n<p>git add .<\/p>\n<p>Commit it:<\/p>\n<p>git commit -m &#8220;.gitignore is now working&#8221;<\/p>\n<p>To undo git rm &#8211;cached filename, use git add filename.<br \/>\n&#8221;<\/p>\n<p><strong>Reference<\/strong>: http:\/\/stackoverflow.com\/questions\/1139762\/ignore-files-that-have-already-been-committed-to-a-git-repository From: http:\/\/sitestree.com\/?p=6050<br \/> Categories:Git<br \/>Tags:<br \/> Post Data:2016-12-27 20:03:29<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Was doing some experiments with Git and gitignore The following worked to achieve what I was trying to achieve&#8230;all the images and all the unnecessary files in the var folder were being tracked&#8230; &#8220;To untrack a single file that has already been added\/initialized to your repository, i.e., stop tracking the file but not delete it &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=67564\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-67564","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":21640,"url":"http:\/\/bangla.sitestree.com\/?p=21640","url_meta":{"origin":67564,"position":0},"title":"Adopting GIT &#8211; One Repo for One Project #Web Development #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 3, 2021","format":false,"excerpt":"Just trying to plan on how to adopt the model of Git based development for all of different Justetc projects. Still, testing, though found this resource to be useful : http:\/\/nvie.com\/posts\/a-successful-git-branching-model\/ Rather than creating a central repository with all projects, so far, planning to create separate repository for each project\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14821,"url":"http:\/\/bangla.sitestree.com\/?p=14821","url_meta":{"origin":67564,"position":1},"title":"What if You Commit Files with Sensitive Information to GitHUB\/BitBucket","author":"Sayed","date":"June 21, 2019","format":false,"excerpt":"What if You Commit Files with Sensitive Information to GitHUB\/BitBucket http:\/\/sitestree.com\/what-if-you-commit-files-with-sensitive-information-to-githubbitbucket\/ Git basic commands and basic branching with Github http:\/\/sitestree.com\/git-basic-commands-and-basic-branching-with-github\/?preview_id=10403&preview_nonce=6e34536133&preview=true Tools: Version Control, Version Management and GIT http:\/\/sitestree.com\/version-control-version-management-and-git\/ You can use Gitlab internally (i.e. install in your corporation) . It will act as a version control server. Gitlab is Linux\/Unix\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25043,"url":"http:\/\/bangla.sitestree.com\/?p=25043","url_meta":{"origin":67564,"position":2},"title":"What if You Commit Files with Sensitive Information to GitHUB\/BitBucket #Root","author":"Author-Check- Article-or-Video","date":"April 15, 2021","format":false,"excerpt":"What if You Commit Files with Sensitive Information to GitHUB\/BitBucket http:\/\/sitestree.com\/what-if-you-commit-files-with-sensitive-information-to-githubbitbucket\/ Git basic commands and basic branching with Github http:\/\/sitestree.com\/git-basic-commands-and-basic-branching-with-github Tools: Version Control, Version Management and GIT http:\/\/sitestree.com\/version-control-version-management-and-git\/ You can use Gitlab internally (i.e. install in your corporation) . It will act as a version control server. Gitlab is Linux\/Unix\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16440,"url":"http:\/\/bangla.sitestree.com\/?p=16440","url_meta":{"origin":67564,"position":3},"title":"Git LFS: Large File System","author":"Sayed","date":"November 30, 2019","format":false,"excerpt":"To use Homebrew, run brew install git-lfs To use MacPorts, run port install git-lfs git lfs track \"*.tar.gz\" git add path\/to\/file.tar.gz git commit -m \"add file.psd\" git push origin master Reference: https:\/\/help.github.com\/en\/github\/managing-large-files\/configuring-git-large-file-storage Sayed Ahmed BSc. Eng. in Comp. Sc. & Eng. (BUET) MSc. in Comp. Sc. (U of Manitoba, Canada)\u2026","rel":"","context":"In &quot;AI ML DS RL DL NN NLP Data Mining Optimization&quot;","block_context":{"text":"AI ML DS RL DL NN NLP Data Mining Optimization","link":"http:\/\/bangla.sitestree.com\/?cat=1910"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":21603,"url":"http:\/\/bangla.sitestree.com\/?p=21603","url_meta":{"origin":67564,"position":4},"title":"Tools: Version Control, Version Management and GIT #Web Development #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 3, 2021","format":false,"excerpt":"You can use Gitlab internally. It will act as a version control server. Gitlab is Linux\/Unix specific. Gitlab is written in Ruby. You can also use Github, however, to keep your projects private, you will need to pay (in recent times, this might have been made free).\u00a0 BitBucket is an\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67568,"url":"http:\/\/bangla.sitestree.com\/?p=67568","url_meta":{"origin":67564,"position":5},"title":"Output from git command:  git reflog and history | grep &#8220;git &#8221; #Git","author":"Author-Check- Article-or-Video","date":"July 25, 2021","format":false,"excerpt":"Output from git command: git reflog and history | grep \"git \" -> did little change to http:\/\/visitorsshop.com -> used two branches branches : Master, Develop -> used some other feature branches such as (with all branches for this case) develop * master remove-client-id-from-url remove-justetc-identity The idea was: create the\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67564"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67564\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67564"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}