repo to learn more about Git via command line.
git clone / init - copy remote codebase to local machine or Create one git repository using init
-
I used git clone (provided the URL from github to clone)
-
create a file file1.txt to track the changes
echo file1 > file1.txt
-
run Git status command to
git status
Command Output:
On branch main Your branch is up-to-date with 'origin/main'. Untracked files: (use "git add ..." to include in what will be committed)
file1.txt
-
Add the file to git hub for tracking changes. git add file1.txt
-
Push the file to git repo, this will update the repo to have this file called File1.txt git push main