Barys Rutman
10/09/2023, 8:32 AMMarvin
10/09/2023, 8:32 AMgit checkout develop
to switch to the develop branch and then git pull
to fetch the latest changes.
2. Create a new feature branch: Create a new branch for your feature or changes using git checkout -b feature/XYZ-123
.
3. Do your work: Make the necessary changes in this feature branch.
4. Commit your changes: Once you're ready to merge these changes, add and commit them using git add . && git commit -m "some commit message"
.
5. Switch back to the develop branch: Use git checkout develop && git pull
to switch back to the develop branch and fetch the latest changes again.
6. Merge the feature branch into develop: Use git merge feature/XYZ-123
to merge your feature branch into the develop branch.
7. Push the changes: Push these changes to the remote repository using git push origin develop
.
8. Merge develop into master: Once all changes in the develop branch have been tested and are ready to be deployed, you can merge them into the master branch. Switch to the master branch using git checkout master
, then merge the develop branch using git merge develop
.
9. Push the changes to master: Finally, push these changes to the remote master branch using git push origin master
.
Remember, it's always a good practice to pull the latest changes from the develop branch before starting work on a new feature, and to test all changes thoroughly before merging them into the master branch.
You can also automate some of these steps using Git Hooks or a Continuous Integration/Continuous Deployment (CI/CD) pipeline. For example, you could set up a CI/CD pipeline to automatically deploy changes to a staging or production server whenever changes are pushed to the master branch.Barys Rutman
10/09/2023, 2:08 PMMarvin
10/09/2023, 2:09 PMgit checkout develop
and fetch the latest changes with git pull
.
2. Create a new feature branch: Create a new branch for your changes using git checkout -b feature/XYZ-123
.
3. Update your flows: Make the necessary changes to your Prefect flows in this feature branch.
4. Commit your changes: Once your flows are ready, add and commit them using git add . && git commit -m "some commit message"
.
5. Switch back to the develop branch: Use git checkout develop && git pull
to switch back to the develop branch and fetch the latest changes again.
6. Merge the feature branch into develop: Merge your feature branch into the develop branch using git merge feature/XYZ-123
.
7. Push the changes: Push these changes to the remote repository using git push origin develop
.
8. Register your flows with Prefect Cloud: At this point, you can register your flows with Prefect Cloud. This can be done using the Prefect CLI with the command prefect register --project your_project_name --path your_flow_file.py
. This command will register your flow with Prefect Cloud, allowing it to be scheduled and run from there.
9. Merge develop into master: Once all changes in the develop branch have been tested and are ready to be deployed, you can merge them into the master branch. Switch to the master branch using git checkout master
, then merge the develop branch using git merge develop
.
10. Push the changes to master: Finally, push these changes to the remote master branch using git push origin master
.
Remember, it's always a good practice to pull the latest changes from the develop branch before starting work on a new feature, and to test all changes thoroughly before merging them into the master branch.
Also, note that Prefect Cloud requires a Prefect agent to be running in order to execute your flows. You can start an agent using the command prefect agent start
.