Pages

Top 10 GIT command

  • How to setup git ?
    • Both linux and windows distribution are available.
    • For linux use 'yum intall git-core' 
    • More info for both : http://help.github.com/linux-set-up-git/ 
    • can integrate into your favorite IDE. ex: Eclipse, Intellij IDEA , NetBeans 
  • Top 10 Commands
    • git init
      • To create repository (Use this command inside directory)
    • git add --all
      • To add all new files to repo
    • git commit -m "Initial commit"
      • Commit files
    • git clone
      • Copy repo from remote location.
    • git push
      • Push files to remote repository
    • git pull
      • Get update from latest project
    • git diff
      • Show the difference between current file content and latest repo file content.
    • git status
      • Diff between your local repo and your working directory
    • git rm <file-name>
      • Remove file from local repo
    • git mv
      • Move file to another location

1 comment: