Add and Commit

<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/2ba07339-dd53-47ac-b00d-c83e7722c42d/b39e600d-15ce-44a6-b5ce-eb6490d84e29/Colorful_Illustrative_Young_Male_Avatar_(1).png" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/2ba07339-dd53-47ac-b00d-c83e7722c42d/b39e600d-15ce-44a6-b5ce-eb6490d84e29/Colorful_Illustrative_Young_Male_Avatar_(1).png" width="40px" /> Git add and Git Commit

Untitled

For instance:

Git Commit

C:\\Users\\60115\\Documents\\Study\\Business Intelligence, Data Scientist, Data Analyst and Data Engineers\\Business Intelligence Analyst\\Python\\Python-Learning\\learning_git\\Fundamental-Python-Learning>git commit -m "my first test"
[main f4e68f6] my first test
 1 file changed, 2 insertions(+)
 create mode 100644 test_python.py

Untitled

Adding file one by one

C:\\Users\\60115\\Documents
\\Study\\Business Intelligence, Data Scientist,
 Data Analyst and Data Engineers\\
Business Intelligence Analyst\\Python
\\Python-Learning\\learning_git\\
Fundamental-Python-Learning>
git add file_one.txt file_two.txt

Adding file all immediately

C:\\Users\\60115\\Documents\\Study\\
Business Intelligence, Data Scientist, 
Data Analyst and Data Engineers\\
Business Intelligence Analyst\\Python\\
Python-Learning\\learning_git\\
Fundamental-Python-Learning>git add .

Check Status

C:\\Users\\60115\\Documents\\Study\\Business Intelligence, Data Scientist, Data Analyst and Data Engineers\\Business Intelligence Analyst\\Python\\Python-Learning\\learning_git\\Fundamental-Python-Learning>git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
  (use "git push" to publish your local commits)

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   file_one.txt
        new file:   file_two.txt

Commit to Input in Local Repo

<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/2ba07339-dd53-47ac-b00d-c83e7722c42d/b39e600d-15ce-44a6-b5ce-eb6490d84e29/Colorful_Illustrative_Young_Male_Avatar_(1).png" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/2ba07339-dd53-47ac-b00d-c83e7722c42d/b39e600d-15ce-44a6-b5ce-eb6490d84e29/Colorful_Illustrative_Young_Male_Avatar_(1).png" width="40px" /> Basically, it’s same step as previous commit. It is advisable to not naming a file with space. For example, Machine Learning.py it can be unreadable. Instead, it’s better to use Machine_Learning.py

</aside>

Staging Area

Untitled