Tuesday, May 2, 2017

GIT in GitHub (Using Terminal)

I Have Already Written about GIT and GitHub in my last Blogs...
Today I'm Going write about Doing Things In GitHub Using Terminals.



How to do GitHub Functions Using Terminal....


We can upload our files to GitHub using Terminal Commands .
Here we have to follow the steps of commands.

  1. Installing git
    • For the first time we must install git for Ubuntu.
    • So we have to command like this to download git
      • sudo apt-get install git
  2. Configuring GitHub
    • Tell Git Who You Are
    • Once the installation has successfully completed, the next thing to do is to set up the configuration details of the GitHub user.
    • Configure the author name and email address to be used with your commits.
      • global config user.name <user name>
      • global config user.email <user email>
  3. Initiating Git in Local Repository
    • Create a folder in your system. This will serve as a local repository which will later be pushed onto the GitHub website.
    • After go to that Folder using cd and initiate git.
    • To initiate Use the following command:
      • git  init
  4. After Initiating now we are going to connect GitHub Folder with our local Repository
    • (I have explained how to create a folder in my last blog)
    • First You have to go to Your GitHub Account and Go to the Repoistory where you have to save your files.
    • In there you will see a URL (Universal Resource Locater) in Clone Window
    • Copy that URL
    • In Terminal
      • Go to the folder where the files are ready to upload in GitHub.
      • Then to connect both folders
        • Type git remote add origin <url> and press Enter.
        • And Check the process is complete or not by typing git remote -v
  5. Commit Files
    • Commit the files that we have saved in our local folder to upload to GitHub.
    • Type git commit -m "message"
    • In message you can type a message.
  6. Push Files to GitHub
    • Using this command the files will be sent to GitHub
    • git push -u origin master


Some GitHub Basic Coding




1 comment:

My First Day with Uki DN Cohort 1

 "Hello WORLD!"