{"id":15008037,"url":"https://github.com/gabepublic/git-playground","last_synced_at":"2026-02-06T20:03:33.356Z","repository":{"id":256298323,"uuid":"854871016","full_name":"gabepublic/git-playground","owner":"gabepublic","description":"Experimenting with github process","archived":false,"fork":false,"pushed_at":"2024-09-10T03:09:47.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T16:48:17.915Z","etag":null,"topics":["git"],"latest_commit_sha":null,"homepage":"","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/gabepublic.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-09-09T23:03:31.000Z","updated_at":"2024-09-10T03:09:50.000Z","dependencies_parsed_at":"2024-09-10T03:43:24.891Z","dependency_job_id":null,"html_url":"https://github.com/gabepublic/git-playground","commit_stats":null,"previous_names":["gabepublic/git-playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabepublic/git-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fgit-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fgit-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fgit-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fgit-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabepublic","download_url":"https://codeload.github.com/gabepublic/git-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fgit-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29174353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T19:56:27.068Z","status":"ssl_error","status_checked_at":"2026-02-06T19:56:18.934Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["git"],"created_at":"2024-09-24T19:14:51.774Z","updated_at":"2026-02-06T20:03:33.338Z","avatar_url":"https://github.com/gabepublic.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-playground\nExperimenting with github process\n\n## Git Flow\n\n### Gemini suggested flow\n\n- prompt\n```\nPlease create a best practice step by step process for two developers collaborative development using github, starting from: create a repo, clone, start development, etc.\n```\n- RESPONSE\n#### A Collaborative Development Process Using GitHub\n\n##### 1. **Create a Repository**\n* **Log in to GitHub:** Access your GitHub account.\n* **Create a new repository:** Click on the \"New repository\" button.\n* **Configure the repository:** Give your repository a descriptive name, add an optional description, and choose the appropriate visibility settings (public, private, or internal).\n* **Initialize with a README:** Check the box to initialize the repository with a README file. This will provide a basic starting point for documentation.\n* **Create the repository:** Click the \"Create repository\" button.\n\n##### 2. **Clone the Repository**\n* **Clone the repository:** On your local machine, use Git to clone the newly created repository:\n  ```bash\n  git clone https://github.com/\u003cyour-username\u003e/\u003crepository-name\u003e.git\n  ```\n  Replace `\u003cyour-username\u003e` and `\u003crepository-name\u003e` with your actual GitHub username and repository name.\n\n##### 3. **Create a New Branch**\n* **Create a new branch:** Before making changes, create a new branch to isolate your work:\n  ```bash\n  git checkout -b \u003cbranch-name\u003e\n  ```\n  Replace `\u003cbranch-name\u003e` with a descriptive name for your branch.\n\n##### 4. **Start Development**\n* **Make changes:** Make your desired changes to the codebase.\n* **Commit changes:** When you're ready, commit your changes:\n  ```bash\n  git add .\n  git commit -m \"Your commit message\"\n  ```\n  Replace \"Your commit message\" with a clear and concise description of your changes.\n\n##### 5. **Push Changes to Your Branch**\n* **Push changes:** Push your changes to your remote branch on GitHub:\n  ```bash\n  git push -u origin \u003cbranch-name\u003e\n  ```\n\n##### 6. **Create a Pull Request**\n* **Create a pull request:** On GitHub, navigate to your repository and click on the \"Pull requests\" tab.\n* **Create a new pull request:** Click the \"New pull request\" button, select your branch as the head branch, and choose the main branch (e.g., \"main\") as the base branch.\n* **Add a description:** Provide a clear and concise description of the changes you've made.\n* **Assign reviewers:** If necessary, assign other developers to review your changes.\n* **Submit the pull request:** Click the \"Create pull request\" button.\n\n##### 7. **Review and Merge**\n* **Review changes:** The assigned reviewers will examine your code and provide feedback.\n* **Address feedback:** Make any necessary changes based on the feedback.\n* **Merge the pull request:** Once the changes are approved, merge the pull request into the main branch.\n\n##### 8. **Update Your Local Branch**\n* **Update your local branch:** Pull the merged changes from the remote repository:\n  ```bash\n  git pull origin main\n  ```\n\n**Additional Best Practices:**\n* **Use meaningful commit messages:** Write clear and concise commit messages that accurately describe the changes you've made.\n* **Keep branches up-to-date:** Regularly rebase your branch on the main branch to avoid merge conflicts.\n* **Utilize GitHub features:** Take advantage of features like issues, milestones, and labels to organize your work and track progress.\n* **Communicate effectively:** Collaborate with your team members to ensure everyone is on the same page.\n\nBy following these steps and best practices, you and your collaborators can effectively work together on GitHub projects.\n\n## EXPERIMENTS\n\n## Branch \"change_001\"\n\n- Perform on the Windows desktop with: Github desktop (GD).\n- Create a branch, \"change_001\" from GD; after create, GD automatically\n  make the branch current (or `git checkout`); any changes onward will\n  be on the \"change_001\" branch\n- The branch has not been published to remote; as indicated by the \n  GD\n- making changes to `README.md`, this file, on the branch.\n- GD detected the changes\n- From GD, commit then push to origin\n- Go to `github.com` to try the pull request.\n- After commit \u0026 push origin, the `github.com` alerted the new branch.\n- There are two branches now: main, change_001\n- Switch to \"change_001\" and the changes in the `README.md` are shown.\n- From GD, click the \"Current branch\" down arrow, then go to \"Pull requests\" tab. Click the \"create a pull request\" link.\n- There is no integration. GD just popup open the browser pointing to `github.com` pull request. HOWEVER, the benefit is the page has been pre-configured to compare \"main\" and \"change_001\" branches. In addition, it pre-checks whether the branch can be merged.\n```\n Able to merge. These branches can be automatically merged.\n``` \n- The page also shows the file(s) difference.\n- Click Assignees: to self; enter title \u0026 description, click the green \"Create pull request\" button. Note: in this case, I assign it to myself.\n- After clicking the \"Create pull request\", now the page refresh to show a button for \"Merge pull request\"; when clicked, the \"Confirm merger\" button is shown.\n- Enter comment and click the \"Confirm merger\".\n```\nPull request successfully merged and closed\nYou’re all set—the change_001 branch can be safely deleted.\n```\n- GD, go to the \"main\" branch then click \"Pull origin\" to get the latest merged code. \n- In the meantime, I have made the changes also on the \"change_001\" branch. When switching to the \"main branch\" to do the \"pull origin\" (above), there were option to: keep the changes in the branch, or to bring the changes to \"main\". I chose the first option, keeping in branch.\n- After \"pull origin\", go back to the \"change_001\" branch, and from \"View stash\"\nthe options are: Restore the changes, or Discard. Choose Restore.\n- Now, when returning back to \"main\" branch, again the choice of: \nkeep the changes in the branch, or to bring the changes to \"main\".\n- Let's take it to the main and commit \u0026 push from main.\n- As indicated above, the \"change_001\" brach can be purged, after pull request -\u003e merge to main.\n  If not ourged, from GD when go back to the \"change_001\" branch, there is an option\n  to \"Preview Pull Request\"; in this case the pull request from \"main\" to merge into \"change_001\" branch; sort of the opposite of the above pull request. \n\n## Rollback to a specific commit\n\n- GD, from the history tab select a commit, right click and select\n  \"create branch from commit\";\n- A new branch is created.\n- Need to make a minor changes, otherwise cannot commit\n- After minor changes, commit, push origin and then pull request\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabepublic%2Fgit-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabepublic%2Fgit-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabepublic%2Fgit-playground/lists"}