So I have made plenty of these issues now, but how do we use them?
When you work on an issue, you should create a new branch.
Open up the repo, then do this
git fetch
git checkout dev
git checkout -b dave/test_issue
This will create a new branch called dave/test_issue. In the future, give the branches a name which makes sense for the issue and prefix it with dave/<some name relating to the issue>.
Then get working on the issue.
Simply just create a file in the src directory, and called it test.rs
Then check git...
git status
Ok, you will see that the file is not being tracked by git, so lets fix that
git add .
This will add all files which aren't being tracked. You could also replace the . with the path to the file you want to track.
Now lets make a commit
git commit -m "some message about what you did... e.g., added file test.rs"
Now we need to push it to the remote, but need to tell it to create a new remote branch so we will use a special push command,
git push -u origin dave/test_issue
We are now done from VScode/terminal.
You now need to open up a pull request, and select dave/test_issue and target dev.
You will need to also set me as the reviewer.
Then write a short description and link it to this issue.
Finally, you should close this issue with a message saying that you did this stuff.
I thought I would make a little test for you.
So I have made plenty of these issues now, but how do we use them?
When you work on an issue, you should create a new branch.
Open up the repo, then do this
This will create a new branch called
dave/test_issue
. In the future, give the branches a name which makes sense for the issue and prefix it withdave/<some name relating to the issue>
.Then get working on the issue.
Simply just create a file in the
src
directory, and called ittest.rs
Then check git...
Ok, you will see that the file is not being tracked by git, so lets fix that
This will add all files which aren't being tracked. You could also replace the
.
with the path to the file you want to track.Now lets make a commit
Now we need to push it to the remote, but need to tell it to create a new remote branch so we will use a special push command,
We are now done from VScode/terminal.
You now need to open up a pull request, and select
dave/test_issue
and targetdev
.You will need to also set me as the reviewer.
Then write a short description and link it to this issue.
Finally, you should close this issue with a message saying that you did this stuff.