Popular Bash Commands
This webpage provides popular Bash Commands for Github and their definitions
- 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
- Git Clone
- Primarily used to point to an existing repository and make a clone or a copy of that repository in a new directory
- Git Add
- Adds new or changed files in your working directory to the Git staging area
- 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
- Git Commit
- A snapshot of your repository at a specific point in time
- Git Reset
- A powerful command that is used to undo local changes to the state of a git repository
- Git Fetch
- A primary command used to download contents from a remote repository
- 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
- 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.
- 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
- 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.
- Git Show
- A command line utility that is used to view expanded details on Git objects, such as blobs, trees, tags and commits
- Git Remote
- A common repository that all team members use to exchange their changes
- 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
- Git Pull
- Used to fetch and download content from a remote repository and immediately updates the local repository to match that content