-
Notifications
You must be signed in to change notification settings - Fork 3
Workflow
Marianela (Mendoza) Crissman edited this page Apr 4, 2021
·
11 revisions
If you already are familiar and have your own way of doing things, please continue with your preferences. Feel free to add it here or if you'd like to improve the one written down, you are welcome todo so.
If you are totally new to working with Git & GitHub, below there is a reference you can use.
- Make sure I am on
master,
git pull - Work through my changes (still on
masterbranch) - Once I am ready to commit (on terminal or git-bash)
git status- to see files affected
git stash- to temporarily save my changes
git branch feature/i51- to create the new branch feature/i{issueNumber} or bugfix/i{issueNumber}
git checkout to-new-branch
git stash pop- after this hopefully no merging conflicts exists, but in case they do, use PyCharm UI to resolve. - Finally we are ready to commit to our new branch. I use PyCharm commit tab to select files and add corresponding commit message. It might be a good idea to start all commit messages including the issue number, like so: "#i51: ignore unwanted files". Remember to keep the commit message descriptive but short.
- Use PyCharm to push your changes, a remote branch with the same name will be automatically created.
- Visit the Pull Request tab and create a PR from the recently added. Include issue on the PR.
- Sit, relax and wait for feedback 😃