mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-08 07:46:42 +02:00
Corrected instruction (#543)
* Corrected Point 10 * Added note in Point 11 * Updated Note in Github-Basics/Readme.md
This commit is contained in:
@@ -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 you’ll 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 you’ll just need to use the following three commands:
|
||||
|
||||
```bash
|
||||
git add .
|
||||
|
Reference in New Issue
Block a user