{"id":19240173,"url":"https://github.com/DevOpsWithAlii/Git-for-devops","last_synced_at":"2025-04-21T08:32:13.944Z","repository":{"id":259510942,"uuid":"877998801","full_name":"DevOpsWithAlii/Git-for-devops","owner":"DevOpsWithAlii","description":"Understanding Git/Github","archived":false,"fork":false,"pushed_at":"2025-02-23T16:43:59.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T08:19:36.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevOpsWithAlii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T15:45:09.000Z","updated_at":"2025-02-23T16:44:01.000Z","dependencies_parsed_at":"2025-01-28T12:20:58.495Z","dependency_job_id":"439a4795-3141-473f-80aa-66d4eaca67be","html_url":"https://github.com/DevOpsWithAlii/Git-for-devops","commit_stats":null,"previous_names":["jugnutoken/git-for-devops","devopswithalii/git-for-devops"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevOpsWithAlii%2FGit-for-devops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevOpsWithAlii%2FGit-for-devops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevOpsWithAlii%2FGit-for-devops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevOpsWithAlii%2FGit-for-devops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevOpsWithAlii","download_url":"https://codeload.github.com/DevOpsWithAlii/Git-for-devops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250023567,"owners_count":21362424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T17:06:16.352Z","updated_at":"2025-04-21T08:32:13.926Z","avatar_url":"https://github.com/DevOpsWithAlii.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#Git for Devops and Cloud Engineer\n\n```markdown for everyone doston\n# Git Workflow Example\n\n## 1. List Files\n```bash\nls\n```\n\n## 2. List All Files (Including Hidden Ones)\n```bash\nls -a\n```\n\n## 3. Check Git Status\n```bash\ngit status\n```\n\n## 4. Create New Text Files\n```bash\ntouch nibba.txt nibbi.txt\n```\n\n## 5. Check Git Status Again\n```bash\ngit status\n```\n\n## 6. Remove a File\n```bash\nrm mygitfile.txt\n```\n\n## 7. Check Git Status Again\n```bash\ngit status\n```\n\n## 8. Add a File to Git\n```bash\ngit add nibbi.txt\n```\n\n## 9. Check Git Status Again\n```bash\ngit status\n```\n\n## 10. Add Another File to Git\n```bash\ngit add nibba.txt\n```\n\n## 11. Check Git Status Again\n```bash\ngit status\n```\n\n## 12. Remove a File from Staging Area (Not from Disk)\n```bash\ngit rm --cached nibbi.txt\n```\n\n## 13. Check Git Status Again\n```bash\ngit status\n```\n\n## 14. Re-add the Removed File\n```bash\ngit add nibbi.txt\n```\n\n## 15. Check Git Status Again\n```bash\ngit status\n```\n\n## 16. Commit Changes with a Message\n```bash\ngit commit -m \"adding nibba nibbi\"\n```\n\n## 17. Clear Terminal Screens\n```bash\nclear\n```\n\n## 18. List Files\n```bash\nls\n```\n\n## 19. Remove a File\n```bash\nrm nibbi.txt\n```\n\n## 20. Check Git Status Again\n```bash\ngit status\n```\n\n## 21. Restore the Removed File\n```bash\ngit restore nibbi.txt\n```\n\n## 22. Check Git Status Again\n```bash\ngit status\n```\n\n## 23. List Files\n```bash\nls\n```\n\n## 24. Set Git User Name\n```bash\ngit config --global user.name \"DevOpsWithAli\"\n```\n\n## 25. Set Git User Email\n```bash\ngit config --global user.email \"amreeta9798@gmail.com\"\n```\n\n## 26. Edit a File\n```bash\nvim nibbi.txt\n```\n\n## 27. Check Git Status Again\n```bash\ngit status\n```\n\n## 28. Add the Edited File to Git\n```bash\ngit add nibbi.txt\n```\n\n## 29. Commit Changes with a Message\n```bash\ngit commit -m \"added new changes to nibbi\"\n```\n\n## 30. Clear Terminal Screen\n```bash\nclear\n```\n\n## 31. Check Git Status\n```bash\ngit status\n```\n\n## 32. List Files\n```bash\nls\n```\n\n## 33. View Git Commit History\n```bash\ngit log\n```\n\n## 34. Edit a File\n```bash\nvim nibba.txt\n```\n\n## 35. Edit Another File\n```bash\nvim nibbi.txt\n```\n\n## 36. Add the Edited File to Git\n```bash\ngit add nibbi.txt\n```\n\n## 37. Check Git Status Again\n```bash\ngit status\n```\n\n## 38. Commit Changes with a Message\n```bash\ngit commit -m \"added nibbi changes\"\n```\n\n## 39. View Git Commit History\n```bash\ngit log\n```\n\n## 40. Clear Terminal Screen\n```bash\nclear\n```\n\n## 41. Check Time\n```bash\ntime\n```\n\n## 42. Check Current Date\n```bash\ndate\n```\n\n## 43. Check and Set Time Zone\n```bash\ntimedatectl\ntimedatectl list-timezones\nsudo timedatectl set-timezone Asia/Kolkata\n```\n\n## 44. Check the Date Again\n```bash\ndate\n```\n\n## 45. Clear Terminal Screen\n```bash\nclear\n```\n\n## 46. View Git Commit History\n```bash\ngit log\n```\n\n## 47. Edit a File\n```bash\nvim nibbi.txt\n```\n\n## 48. Add the Edited File to Git\n```bash\ngit add nibbi.txt\n```\n\n## 49. Commit Changes with a Message\n```bash\ngit commit -m \"added nibbi new changes\"\n```\n\n## 50. View Git Commit History\n```bash\ngit log\n```\n\n## 51. Check Branches\n```bash\ngit branch\n```\n\n## 52. Create a New Branch\n```bash\ngit checkout -b dev\n```\n\n## 53. Check Git Status\n```bash\ngit status\n```\n\n## 54. Switch Back to Master Branch\n```bash\ngit checkout master\n```\n\n## 55. Check Git Status Again\n```bash\ngit status\n```\n\n## 56. Switch Back to Dev Branch\n```bash\ngit checkout dev\n```\n\n## 57. Check Git Status Again\n```bash\ngit status\n```\n\n## 58. Create a New File\n```bash\ntouch nibbu.txt\n```\n\n## 59. List Files\n```bash\nls\n```\n\n## 60. Check Git Status\n```bash\ngit status\n```\n\n## 61. Add the New File to Git\n```bash\ngit add nibbu.txt\n```\n\n## 62. Commit Changes with a Message\n```bash\ngit commit -m \"added nibbu new changes\"\n```\n\n## 63. List Files\n```bash\nls\n```\n\n## 64. Check Git Status\n```bash\ngit status\n```\n\n## 65. Switch Back to Master Branch\n```bash\ngit checkout master\n```\n\n## 66. List Files\n```bash\nls\n```\n\n## 67. View Git Commit History\n```bash\ngit log\n```\n\n## 68. Switch Back to Dev Branch\n```bash\ngit checkout dev\n```\n\n## 69. View Git Commit History\n```bash\ngit log\n```\n\n## 70. Quit Log Viewer\n```bash\nq\n```\n\n## 71. Check Branches\n```bash\ngit branch\n```\n\n## 72. Switch Back to Master Branch\n```bash\ngit checkout master\n```\n\n## 73. Check Branches Again\n```bash\ngit branch\n```\n\n## 74. Create a New Branch\n```bash\ngit checkout -b dev2\n```\n\n## 75. Switch to the New Branch\n```bash\ngit checkout dev2\n```\n\n## 76. Check Git Status\n```bash\ngit status\n```\n\n## 77. View Git Commit History\n```bash\ngit log\n```\n\n## 78. Check Branches\n```bash\ngit branch\n```\n\n## 79. View Git Commit History in One Line\n```bash\ngit log --oneline\n```\n\n## 80. Switch Back to Dev Branch\n```bash\ngit checkout dev\n```\n\n## 81. View Git Commit History in One Line\n```bash\ngit log --oneline\n```\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDevOpsWithAlii%2FGit-for-devops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDevOpsWithAlii%2FGit-for-devops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDevOpsWithAlii%2FGit-for-devops/lists"}