Enterprise

Git

By Levi Blodgett



Light green text means replace with your own information.

Hover over me for more information, click the button to copy this to clipboard! -> Copied!

Install and create an environment for utilizing Git on your computer
  1. Download Git
  2. Click next through all prompts
  3. Launch Git
  4. Add your email address to Git
  5. Add your user name to Git
Create repositories on your local system and add Git to the project folder
  1. Create the repository for the project
  2. Open that folder in Git Bash
  3. Create your .git file and initialize git in the folder
  4. Create the repository on GitHub
  5. Add the remote repository location to your local Git repository
  6. Add changes, commit changes, setup your master branch's upstream branch and push your commit
Begin your project, just these three commands alone are half of a developer's use of Git
  1. Add whichever files you want to save to GitHub into the staging area
  2. Commit your changes that you have added to the staging area
  3. Push your commit(s) to GitHub
Learn how to navigate enterprise-level developer workflow in order to contribute to an active project
  1. git branch Copied! to list all the branches for the project on your local machine
  2. Create a new branch
  3. Switch to an existing branch
  4. Merge the branch you have been working on with the master
  5. Delete the local branch after merging
  6. Delete the remote branch after merging
Start contributing to an active collaborative project after employing these techniques
  1. Generate an SSH key, add it to the ssh-agent, and add it to your GitHub account for the next few steps.
  2. Fork the repository by navigating to your desired repository on GitHub and clicking "Fork" in the top-right corner
  3. Copy your fork of the repository from GitHub onto your local system by cloning
  4. To update from the master branch if it gets updated, then pull from it
  5. Make your branch, add your changes, commit to branch, and push
Stay up to date in a team environment, manage and track a project's workflow and structure
  1. Pull from the master or a particular branch
  2. View what files have been changed and what is being tracked
  3. View the commit history
  4. Revert/Checkout to a previous commit version