Posts

Showing posts with the label #commands

Git & Githubs Commands

Terminal  Commands   cd (go to child directory) cd .. (go to parent) mkdir (create a new folder) ls (list of files) ls -a (show also hidden files) Check Git Version git --version Configuring Git git config --global user.name "myname" git config --global user.email "mailId" git config --list (to check git config) Clone & Status Clone - Cloning a repository on our machine git clone <-link-> git status Add & Commit git add filename git add . (when we use dot then added all files) git commit -m "msg" Git Push upload local repo content to remote repo git push origin main Init Command used to create a new git repo git init git remote add origin <-link-> git remote - v (to verifiy remote) git branch (to check branch) git branch -M main (to rename branch) git push origin main or git push -u origin main ...