- Fork this repository.
- Clone it in your
Development
:git clone https://github.com/YOUR_GITHUB_USERNAME/JSFoundations-Git
- Use the command
cd
to move into the repository folder:cd JSFoundations-Git
- Use the command
touch
to create an example file:touch example.txt
- Add all the files to the repository:
git add .
- Commit all the files:
git commit -m "solved git task!"
- Push to the remote repository:
git push
- Open the repository page on GitHub, you should now see two files:
README.md
andexample.txt
That's it! Well done!! Please share a link to your repository with the instructor.
If this is your first time using git, you might see the following message:
*** Please tell me who you are.
Here's how to fix it:
- Run the command
git config --global user.email ""
with your github email address in the quotation marks. - Run the command
git config --global user.name ""
with your github username in the quotation marks.
Then do the last step you were doing in the task.
Then you might be asked to login to your github account. When you enter your password, it won't display anything on the screen, just keep typing and hit Enter.