- Assuming you have cloned the
data_mining_hw_1.git
repository to your account, you first clone your fork to start making necessary changes, by:
git clone https://github.com/YOURUSERNAME/data_mining_1.git
- It's a good practise that when you fork a repo, you fetch from
upstream
and create a new branch. In this assignment you don't need to fetch changes since the homework repo is finalized. But you are recommended to create a new branch instead of working directly from the master branch. (If you have already started working on master, it is fine either way.) Create branch and give it a meaningful name:
git branch newbranch
- Then you switch to the new branch by:
git checkout newbranch
- You are now ready to start making changes. After you have finished making changes and you are ready to commit those changes. You do so by the following commands: Add new files:
git add .
Commit changes:
git commit -am "added new changes"
And push to newbranch
. (Note: not to master)
git push -u origin newbranch
Just make sure you push to newbranch
instead of master. Again, if you are working on your master it is still fine. You can also merge your new branch with master as well. Just don't submit pull request to the original repository. You will be asked to provide a link to your final submission on due date. Other questions on Slack please!