InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Git tutorials

  • Github for beginners
  • Undo last commit
  • List git branches
  • Git checkout remote branch
  • Diff two branches
  • Show log of one user's commits
  • View diff for a given commit id
  • Setup password less git push for github
  • Git - Check if a hash is valid
  • Git - display specific length commit hash
  • Git - rename local branch
  • Git create branch
  • Git delete branch
  • Git detached head
  • Git display info of last commit (HEAD) in one line
  • Git display local HEAD location
  • Git log with file names
  • Git show details of a commit hash
 
  • Home
  • > Tutorials
  • > Git

Github tutorial for beginners

By admin | Last updated on Jan 13, 2016

Using git/github may look like a daunting task but once you set it up, it is not that difficult. Here are quick steps to get started with git.

  1. Create a user account at github.com
  2. Create a new repository at https://github.com/new. You can also choose to clone some existing repository. Check Initialize this repository with a README.
    git-new-repository
  3. Click create repository. Wow! You are done! Go and celebrate for a while!
  4. To do commits, you need to install git client. You can download client here for your environment. The GitHub ui will ask you to login to do initial setup. In case you do it from linux shell there are commands:
    git config --global user.name "Your Name"
    git config --global user.email "your_email"
  5. From command line use this to clone the repositiry
    git clone https://github.com/pkjain/shell-child-themes.git
    (replace it with your repository name)
  6. In case you get error “SSL certificate problem, verify that the CA cert is OK”, then you may want to update the openssl. For centos linux this command will work:
    sudo yum update openssl
  7. Make changes to your README.md. You can look the jquery README (raw).
  8. git status -s (to see status of changed files)
  9. git diff (to see the diff)
  10. git checkout . To undo changes to your working copy of the files. Use filename instead of dot for a single file.
  11. git commit -a (add and commit to local repository)
  12. git push origin master (push to original master). Here you will have to enter user and password.

You can get detailed git reference from many websites. Here is an online book by Scott Chacon you can refer to.

Suggested posts:

  1. WordPress – write custom php log to separate file
  2. CSS – how to align image and text in center vertically
  3. How to disable sleep during android usb debugging
  4. Debug javascript using node-inspector, node-debug, nodemon and Chrome
  5. Linux – providing sudo access to a users – some best practices
  6. How to fix a broken sudoers file on AWS/EC2 Linux
  7. Git log with file names
  8. Git display local HEAD location
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Git, Github, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress