Go to Jira and select an issue/feature you want to work on from the board. Click on it and you will be presented with the detailed view. Find development option from the very right panel of this detailed view. There you will find create-branch command. Copy the command.
Open you projects' root directory in terminal and make a pull git pull
. Make sure you are running pull
command from within main
branch. Then paste the command you copied from jira ( it should be something like git checkout -b <branch_name>
) and hit enter. Now you are in your new branch where you should code for that issue/feature only.
Once you are done with coding and testing. This is the time to let the reviewers know. So you will have to push your local branch on remote. To do this follow these commands:
git add <file_name>
// adds a file in staging area.git add .
// adds all files in staging area. you should prefer this.git commit -m "type your commit message here"
git push -u <remote_name> <branch_name>
Once you pushed the branch on remote. Go to github.com and open your project's repository.There, navigate to your branch, you will find this on the very top of the file structure.
Click on contribute button and you will see a dropdown like below.
Just click on Open Pull Request button. Once you opened pull request it should be visible in the pull requests tab. And that's it.
IMPORTANT You should keep checking for any reviews on you pull requests. Try enabling notifications and email to get notified about updates on your pull requests.