git
to make sure github is installed successfully on your machine. This will ensure that path of github executable is inside your environment variable. Cmd + Shift + P
on Mac or Ctrl + Shift + P
on windows. Go to Install Package -> Git
. Cmd + Shift + P
on mac and Ctrl + Shift + P
on windows machine and type Git:
. This will show all git commands as shown in the below image. Git : Init
to initialize your working directory as Git repository. Git : Add All
to add all changed files to staging area. Git : Add Current File
to add only current file into staging area. Git: Commit
to add all staged files to commit area. It will promt another page to add commit message. This page will show all code hunks that will be part of this commit. Add a commit message and close the file to commit files. Git: Push
will push your local committed changes to associated remote repository. This command will give error in sublime console if remote repository is not associated with local repo. Git: Pull
will pull remote repo changes and merge it into local repository. Git: Diff All Files
will show all changes in the code which are not committed. This will open up new window which is showing all the changes in the code hunks. Git: Log All
will prompt to select the list of previous commit. Once you select specific commit, it will show log of all changes happened in that commit.