List Of Commonly Used GitHub Commands
Introduction In this article, we will see what are the list of commonly used commands in Git . These are the commands which are really useful while working on any project. Hope this will be useful. 1) To initialize GitHub Repository in your local machine project folder: git init Git Copy 2) To get the status of files: git status Git Copy 3) To configure Username and Password: git config –global user.name “FirstName LastName” git config –global user.email “email@email.com” Git Copy 4) To clone the repository to your local machine: git clone ssh://john@example.com/path/to/my-project.git Git Copy Note: Here URL is GitHub Repository URL 5) To add a single file to GitHub: git add file-name Git Copy 6) To add all the modified file to GitHub: git add . git add -A Git Copy 7) To commit the changes to GitHub: git commit -m “commit-message” Git Copy 8) Get the latest code from the main branch: git pull Git Copy 9) To pull the latest code from a particular branch: git pull...