- Create a GitHub repository
- Clone the repository to a local directory
- Work on your local repo, such as modifying or adding files
- Use 'git add' to add intended files to the local repo
- Use 'git commit -m
to commit the changes - Push local data to the remote location (GitHub)
If you make changes directly via GitHub, there could be mismatch between the local and the remote repo. You can use the pull command to merge the changes.
No comments:
Post a Comment