sudo apt install git | Install GIT |
---|---|
git status | git status |
git init | Initiate the git |
git add folder_name | add folder to git, or put . for all files |
git config --global user.name "Venkatesh" | configure Name |
git config --global user.email "venkateshtamizl@gmail.com" | configure Email |
git branch -M main | Main Branch |
git config --list | get the configured list |
git remote add origin git@github.com:venkateshtamizl/dockerfiles.git | configured to the github repository |
git push -u origin main | push the files |
git restore -- . git restore filename.txt | restore the deleted files from git |
git push origin main | push the changes to the github |