Date: April 21, 2024

Topic: git clone

Recall

What is git clone?

What all protocols does git clone support?

Notes

<aside> πŸ“Œ SUMMARY: git clone makes a full copy of the data with all its versions and checks out on the latest version.

</aside>


Date: April 21, 2024

Topic: Checking three states of files

Recall

How to check the staged/committed status of files

Notes

<aside> πŸ“Œ SUMMARY: git status command helps getting the status of untracked files and the current branch.

</aside>


Date: April 21, 2024

Topic: Ignoring files

Recall

How to protect some files from being staged or being mentioned untracked by git?

What file pattern standard does gitignore follow?

Notes

$ cat .gitignore
# File extensions ending in o or a.
*.[oa] 
# File name ending in ~
*~ 
# ignore all .a files
*.a
# but do track lib.a, even though you're ignoring .a files above
!lib.a
# only ignore the TODO file in the current directory, not subdir/TODO
/TODO
# ignore all files in any directory named build
build/
# ignore doc/notes.txt, but not doc/server/arch.txt
doc/*.txt
# ignore all .pdf files in the doc/ directory and any of its subdirectories
doc/**/*.pdf

<aside> πŸ“Œ SUMMARY: To avoid staging files or being mentioned as untracked by git we mention those files as their name or using pattern in a file .gitignore

</aside>


Date: April 22, 2024

Topic: View staged and unstaged changes