728*90 add style for blog

Thursday, April 9, 2015

How to Commit on Github

Hi, I am sharing here some steps for git hub commit specially when you are joined some repo as Collaborators and you are trying to commit your side code

So follow below steps to commit your code

  1. git init [If your local folder is not init with git earlier ]
  2. git remote add origin <Repo URL>
  3. git fetch [Will get the code/data from current Remote Repo from github]
  4. git pull <Repo URL>
  5. Now add your local copy to current checkout folder locally
  6. Now check status to confirm that you have correctly added you local copy to the live Git folderby " git status "
  7. Now you will see the latest added file
  8. now add this all file to github with command " git add " and then again checking status you may found file is added
  9. now git commit -m ""
  10. git push <Repo URL>
Done!!

Saturday, April 4, 2015

Install Bitbucket source tree in MAC OS

Hi I'm sharing how to install Sourcetree with maricural support to get the clone of your bitbucket copy code

  1. Check for Github install in MAC ,by default it will be there but you can check from following command
    1. git --version
      1. Required O/p : git version 1.8.1.3
    2. Configure your global username using the following command:
      • git config --global user.name "FIRST_NAME LAST_NAME"
    3. Configure your global email address using the following command:
    4. Install Mercurial
      1. Make sure you have root access (sudo) on the system where you want to install Mercurial
      2. Download and install
      3. Verify the installation was successful by typing the following at the command line.
      4. hg --version [you will see below output ]
        • Mercurial Distributed SCM (version 3.3.1+20150311)
          (see http://mercurial.selenic.com for more information)
          Copyright (C) 2005-2014 Matt Mackall and others
          This is free software; see the source for copying conditions. There is NO
          warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      5. Determine if you already have a ~/.hgrc file in your environment by entering the following at the command line:
      6. If you get "No such file or directory" then create it by following command
      7. ls ~/.hgrc
      8. Done !!
Now you can use the generated url from bitbucket and use it in Terminal, now you should not get any error of HG command
  1. hg clone https://YOUR-USER-NAME@bitbucket.org/avaiyakirtib/Exampleapp
  2. You will need to ask for password and go on
  3. Done!!