Adding files to the GitHub repository with Git

Hi, I'm Cristina Ramirez, I'm a computer engineer and software developer with more than 10 years of experience as backend developer, web application development, API REST services for mobile applications, system analysis and logic.
Programming languages: Ruby, PHP, C, C++, C#, CSS, JavaScript.
Frameworks: Ruby on Rails, PHP (Codeigniter, APPHP).
Experience of relational databases (Postgres, MySql, Oracle) and NoSQL databases (MongoDB, Neo4j).
I like innovation and teamwork.
💡 Adding new files to the GitHub repository with Git.
1.- Run git pull origin main command to download the latest changes from the remote repository to the local repository. Developers use this command if a teammate has made commits to a branch on a remote, and they would like to reflect those changes in their local environment.
git pull origin main
2.- If you create a new file in the project and execute git status command, the file appears in red indicating that the working directory has changed.
(Working Directory - Modified)

3.- Add the file to staging area with git add <file_name> command.
(Staging area)
git add 30class.rb

Or the easiest way to add all files to staging area is using git add . command.
git add .
4.- Execute git commit -m <message> command to create a message with the change. This command saves the snapshot to the project history and completes the change-tracking process. In "message" you must write a description of the changes.
(Directory .git - Committed)
git commit -m "<message>"

If you want to give more details in the message, you can run git commit -a command to open a file editor.
git commit -a
Write the message and exit the editor with ESC + Shift + : and then write :wq to save this message. (On Mac)

5.- Push changes with git push origin main command. This command updates the remote repository with any commits made locally to a branch.
git push origin main

6.- View historical changes with git log command, this command shows us the structures of each commit in the project history.
git log





