## Git Basics > Note: The whole talk flow is mentioned here: https://talks.cdhiraj40.dev/git-basics/talk-content.html ### Git Download link https://git-scm.com/downloads ### Git Commands - 1 1. Run `git init` command ``` git init ``` 2. Run `git status` command ``` git status ``` 3. 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 ``` 4. 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 ``` 5. git log ``` git log ``` 6. git stash ``` git stash ``` ------ ### Git Commands - 2 1. Connect remote repository with local one. Specify a `remote name` which you would like to have and replace link with your remote project link. ``` git remote add ``` 2. Verify new remote ``` git remote -v ``` 3. Push the changes from local to remote. ``` git push ``` -----