Note: The whole talk flow is mentioned here: https://talks.cdhiraj40.dev/git-basics/talk-content.html
- Run
git initcommand
git init
- Run
git statuscommand
git status
- Add a specific file to staging area.
File path should be relative to your project's path
- Correct path => src/lib.rs
- Wrong path => user/windows/my-cool-project/src/lib.rs
git add <file path>
- Run
git commit
Replace commit message with a small message which is descriptive of the changes. Make sure its small and on-point.
git commit -m <commit message>
- git log
git log
- git stash
git stash
- Connect remote repository with local one.
Specify aremote namewhich you would like to have and replace link with your remote project link.
git remote add <name> <link>
- Verify new remote
git remote -v
- Push the changes from local to remote.
git push