{"id":20697575,"url":"https://github.com/epomatti/gitflow-django-demo","last_synced_at":"2025-12-25T03:37:26.704Z","repository":{"id":108712865,"uuid":"199180678","full_name":"epomatti/gitflow-django-demo","owner":"epomatti","description":"Git Flow + Django","archived":false,"fork":false,"pushed_at":"2022-03-20T14:05:17.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-17T18:41:55.689Z","etag":null,"topics":["django","git-flow","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epomatti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-07-27T15:15:44.000Z","updated_at":"2022-03-20T14:07:08.000Z","dependencies_parsed_at":"2023-04-25T00:00:48.447Z","dependency_job_id":null,"html_url":"https://github.com/epomatti/gitflow-django-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fgitflow-django-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fgitflow-django-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fgitflow-django-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fgitflow-django-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epomatti","download_url":"https://codeload.github.com/epomatti/gitflow-django-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242961747,"owners_count":20213315,"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":["django","git-flow","python"],"created_at":"2024-11-17T00:19:03.449Z","updated_at":"2025-12-25T03:37:26.699Z","avatar_url":"https://github.com/epomatti.png","language":"Python","readme":"# Git Flow with Django\n\nProject to learn Django commands versioned with Git Flow.\n\n\u003cimg src=\".docs/gitflow.png\" width=500/\u003e\n\n## Setup\n\n```sh\npython3 -m venv env\n. env/bin/activate\npip install -r requirements.txt\n```\n\nTo add new app:\n\n```sh\ndjango-admin startapp '\u003cname_of_the_app\u003e'\n```\n\nRun it:\n\n```sh\npython manage.py runserver\n```\n\n## Git Flow\n\n### Develop Branch\n\nCreate `develop` branch\n\n```shell\ngit checkout -b develop\ngit push origin develop\ngit branch -a\n```\n\n### Feature Branch\n\nCreate branch from `develop`, stage and commit:\n\n```shell\ngit checkout -b purepython develop\ngit add .\ngit status\ngit commit -m \"first commit\"\n```\n\nMerge:\n\n```shell\ngit checkout develop\ngit merge --no-ff purepython\ngit push origin develop\ngit branch -d purepython\n```\n\n### Release Branch\n\nChange, stage, commit, merge to `main`, tag, and push:\n```shell\ngit checkout -b release-1.2\ngit commit -a -m \"some change\"\ngit checkout main\ngit merge --no-ff release-1.2\ngit tag -a 1.2 -m \"new release 1.2\"\ngit push --tags origin main\n```\n\nMerge to `develop` and delete release:\n\n```shell\ngit checkout develop\ngit merge --no-ff release-1.2\ngit branch -d release-1.2\n```\n\n### Hotfix Branch\n\nCreate `hotfix` branch, bump version and fix the problem:\n\n```shell\ngit checkout -b hotfix-1.2.1 main\n./bump-version.sh 1.2.1\ngit commit -a -m \"Bumped version number to 1.2.1\"\ngit commit -m \"Fixed severe production problem\"\n```\n\nMerge to `main`, tag and push (with tags):\n\n```shell\ngit checkout main\ngit merge --no-ff hotfix-1.2.1\ngit tag -a 1.2.1\ngit push --tags origin main\n```\n\nMerge to `develop` and delete branch:\n\n```shell\ngit checkout develop\ngit merge --no-ff hotfix-1.2.1\ngit push --tags origin develop\n\ngit branch -d hotfix-1.2.1\n```\n\n## Sources\n\nDjango\n\nhttps://www.django-rest-framework.org/tutorial/quickstart/\n\nhttps://dfpp.readthedocs.io/en/latest/chapter_01.html\n\nGit Flow\n\nhttps://githowto.com/\n\nhttps://danielkummer.github.io/git-flow-cheatsheet/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepomatti%2Fgitflow-django-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepomatti%2Fgitflow-django-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepomatti%2Fgitflow-django-demo/lists"}