At the bottom there are contribution rules of a project in GitHub. Particularly step 4
is under the question. It doesn't say anything if I need to run add
and commit
commands before I run git push --set-upstream
.
Because when I have made my changes, I get modified and untracked files in my local repo. So do I need to add
and commit
them before git push --set-upstream
?
- Fork the Material-UI repository on Github
- Clone your fork to your local machine
git clone --depth 1 [email protected]:<yourname>/material-ui.git
(For thenext
branch, add the-b next
flag to the above command.)- Create a branch
git checkout -b my-topic-branch
- Make your changes, lint, then push to github with
git push --set-upstream origin my-topic-branch
.- Visit github and make your pull request.
Yes, you do need add and commit your changes before pushing your code to your github repository.