Popular Bash Commands

This webpage provides popular Bash Commands for Github and their definitions

  1. Git init
    • Creates a new Git repository
    • It can be used to convert an existing, unversioned project to a Git repository or initialize a new, empty repository
  2. Git Clone
    • Primarily used to point to an existing repository and make a clone or a copy of that repository in a new directory
  3. Git Add
    • Adds new or changed files in your working directory to the Git staging area
  4. Git Diff
    • Diffing is a function that takes two input data sets and outputs the changes between them
    • A multi-use Git command that when executed runs a diff function on Git data sources
  5. Git Commit
    • A snapshot of your repository at a specific point in time
  6. Git Reset
    • A powerful command that is used to undo local changes to the state of a git repository
  7. Git Fetch
    • A primary command used to download contents from a remote repository
  8. Git Status
    • Displays the state of the working directory and the staging area
    • It lets you see which changes have been staged, which haven't and which files aren't being tracked by Git
  9. Git Branch
    • A lightweight moveable pointed to one of these commits
    • The default branch name in Git, is master, As you start making commits, you're given a master branch that points to the last commit you made.
  10. Git Merge
    • It's Gits way of putting a forked history back together again
    • The git merge command lets you take the independent lines of development created by git branch and intergrate them into a single branch
  11. Git Log
    • Shows a list of all the commits made to a repository
    • You can see the hash of each Git commit, the message associated with each commit. and more metadata.
  12. Git Show
    • A command line utility that is used to view expanded details on Git objects, such as blobs, trees, tags and commits
  13. Git Remote
    • A common repository that all team members use to exchange their changes
  14. Git Push
    • Used to upload local repository content to a remote repository
    • Pushing is how you transfer commits from your local repository to a remote repository
    • The counterpart to git fetch
  15. Git Pull
    • Used to fetch and download content from a remote repository and immediately updates the local repository to match that content