I’m new to GitHub and its terms confuse me a little. I made a commit. Now I want to change the project to a new refactored version.
- Do I need to delete files from the existing repo before commiting new version (if the structure was changed and some of the files are not needed anymore)?
- Do I need to push or to commit? Or do I need to do something else?
Making a
commitupdates the repo on your local machine. Doing apushwill replicate your repo changes on a remote.You can commit as many times as you want locally. Once you are happy with the state of your repo, you can update the repo on Github with the following command:
If you want to delete a file from the repo, you can do this:
If the repo doesn’t exist on Github yet, go ahead and create a repo there. They will give you step-by-step instructions on how to make your first commit. It will likely look something like this: