Git Repository Commands - BRS MEDIA TECHNOLOGIES
Git Command

Git Repository Commands

Basic GIT Commands

  • git config –global user.email “[email address]”
  • git init [repo name]
  • git clone [URL]
  • git add (filename),
  • git add *
  • git commit –m [type in a message]
  • git commit -a
  • git diff
  • git diff -staged
  • git diff [first branch] [second branch]
  • git reset [file]

Intermediate GIT Commands

  • git rest [commit]
  • git reset –hard [commit]
  • git status
  • git rm [file]
  • git log
  • git log –follow [file]
  • git show [commit]
  • git tag [commitID]
  • git branch
  • Git branch [branch-name]

Advanced Commands

  • git branch –d [branch name]
  • git checkout [branch-name]

How to do git checkout?

  • git checkout
  • git checkout –b –track /
  • git checkout specific-commit-id
  • git checkout branch_name
  • git checkout –b new branch_name
  • git checkout –b
  • git checkout
  • git fetch origin
  • git checkout –b branch_name origin/branch_name
  • git branch
  • git checkout –b checkout_demo

Related Article

PCI Complaince Hosting Server Configuration

PCI Compliance

The Payment Card Industry Data Security Standard (PCI DSS) is an information security standard defined by the Payment Card Industry […]

How to Install KDE Desktop Environment on Ubuntu

Contents1 Install KDE desktop environment on Ubuntu1.1 KDE Full1.2 KDE Standard1.3 KDE Plasma Desktop1.4 KDE Plasma Netbook [Discontinued]2 KDE Plasma […]

CPU-Limit-in-Linux

How To Limit CPU Usage Of A Process With cpulimit (Debian/Ubuntu)

This tutorial shows how you can limit the CPU usage of a process with the tool cpulimit on Debian/Ubuntu. cpulimit […]