Github Commands Guide
Github Commands Guide
- Appends the text `# my_notes` to a file named `README.md`. If the file doesn't
exist, it creates one.
2. **`git init`**
- Stages only the `README.md` file for the next commit. This is redundant if you
already ran `git add .`.
- Renames the current branch to `main`. This is often done to follow modern
naming conventions.
- Links your local Git repository to a remote repository hosted on GitHub at the
given URL.
- Pushes the `main` branch to the remote repository (`origin`) and sets
`origin/main` as the default upstream branch for future pushes and pulls.
---
- Links the local repository to the GitHub repository at the specified URL
(`https://github.com/kashershahzad/my_notes.git`).