Saturday, October 31, 2015

GIT Work Flow



















  • Create an account in GitHub. Login to GitHub and create a new repository, say "TestRepo".
  • On your local computer, download Git.exe following the instructions at https://git-scm.com/downloads
  • On your local computer, create a folder, say "TestRepo".
  • Go to command prompt, change directory to TestRepo and C:\TestRepo>git init
  • This above command creates a ".git" folder in TestRepo folder.
  • Now create couple of files, test1.txt, test2.txt, in TestRepo folder.
  • C:\TestRepo>git add . (Note: after git add, a period is there, don't forget that)
  • The above command moves the files test1.txt, test2.txt to staging area.
  • C:\TestRepo>git commit -m "committing test1, test2 files"
  • The above command moves the files test1.txt, test2.txt to local repository.
  • C:\TestRepo>git remote add origin <https clone URL from github>
  • The above command connects to the github when you provide the correct username and password.
  • C:\TestRepo>git push origin master
  • The above command pushes your files from your local repository to github remote repository
  • C:\TestRepo>git pull origin master
  • The above command pulls the files from github remote repository to your local repository.
  • Happy programming!!

Thursday, October 22, 2015

How to install packages in Sublime



  1. Open https://packagecontrol.io/installation and select the content under the tabs based on your Sublime (Sublime Text 2 or Sublime Text 3)
  2. Open your Sublime, press (Ctrl + `) in Windows.
  3. In the console (the console shows up as a single gray line at the bottom of the sublime), enter the copied text and hit enter.
  4. Sublime may ask you to restart Sublime couple of times, and please do so.
  5. Once the above steps are done, you are good to access and install any packages.
  6. Press Ctrl + Shift + P and type Install Package.
  7. Enter the name of a package that you want to install, for example...SublimeLinter, and select it.
  8. The plugin gets installed automatically.
  9. That's pretty much it!