Corrected instruction (#543)

* Corrected Point 10

* Added note in Point 11

* Updated Note in Github-Basics/Readme.md
This commit is contained in:
Shubham Rauthan
2021-12-02 01:38:52 +05:30
committed by GitHub
parent 845f78a7fc
commit 99d4abd71b

View File

@@ -125,7 +125,7 @@ Let's say you have a folder locally with some code project and you want to start
1. **Connect your local Git repo with GitHub**. A Git repo is good on your machine but at some point you want to have backup of your files somewhere and also invite other people to work with you on your repo. One such great place to do so is GitHub. Remember we've already created a repo on GitHub so the only thing we need to do is to connect our local Git repo with GitHub. The command `git remote add` will do just that. Type the following command:
> Note, before you type the command go to your GitHub repo page to find the repository URL. You will use it in the below command. Replace `repository_name` with your GitHub URL.
> Note, before you type the command go to your GitHub repo page to find the repository URL. You will use it in the below command. Replace ```https://github.com/username/repository_name.git``` with your GitHub URL.
```bash
git remote add origin https://github.com/username/repository_name.git
@@ -134,6 +134,8 @@ Let's say you have a folder locally with some code project and you want to start
This creates a _remote_, or connection, named "origin" pointing at the GitHub repository you created earlier.
1. **Send local files to GitHub**. So far you've created a _connection_ between the local repo and the GitHub repo. Let's send these files to GitHub with the following command `git push`, like so:
> Note, your branch name may be different by default from ```main```.
```bash
git push -u origin main
@@ -141,7 +143,7 @@ Let's say you have a folder locally with some code project and you want to start
This sends your commits in your "main" branch to GitHub.
1. **To add more changes**. If you want to continue making changes and pushing them to GitHub youll just need to use the following three commands:
2. **To add more changes**. If you want to continue making changes and pushing them to GitHub youll just need to use the following three commands:
```bash
git add .