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*/

Angular Commands

  • ng new ProjectName – creating a new project file
  • ng serve -o — running application
  • ng generate component Pagename — creating a new page
    • ng g c Pagename — creating a new page
  • ng g s ServiceName — creating a service page
  • ng g class NameOftheModel –type=model /*creating a model class*/