Git Commands

  • git config –list /*list the username and password*/
  • git config –global user.name “Your git name”
  • git config –global user.email “Your email id”
  • git init /*initialize your repository */
  • tree .git /*Get the folder structure*/
  • brew install tree /*installing tree*/
  • git status /*getting the status of git */
  • git add –all /*adding all the files in git*/
  • git commit -m “message” /*committing added git files */
  • git log /*getting all the git logs like commit*/
  • git checkout commitid /*checkout the commit we want to go*/
  • git commit –amend -m “New commit message.” /*for changing last commit message*/
  • git pull upstream master /*Update your local repo from the central repo*/
  • git remote add url /*add your remote repo*/

Leave a Reply

Your email address will not be published.