it training and support
git init # Initialize git in directory
git add file1.js #staging a single file git add file1.js file2.js #staging multiple files git add .*js #staging by pattern git add . # Staging all the content of the directory git ls-files # View files in the staging area
Git status # Full status Git status -s # Short status
Git commit -m”Mesage” # Write a one line message
Git push origin main # Write code changed to repository Git pull origin main # Get code changed from repository
.gitignore # Ignore large or unwanted files