Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: Git Quick Reference

Compare Page Revisions



« Older Revision - Back to Page History - Current Revision


Page Revision: Thu, May 19, 2022, 12:36 PM


GIT Full Path

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd\git.exe"

Clone a Repo

git clone https://github.com/AcmeCompany/MyRepo.git

List Outgoing Commits

This command sends the output to the file "c:\data\diff.txt"

git log origin/DEPLOY..HEAD > c:\data\diff.txt

Branches

List Branches

git branch

Checkout AND CREATE Branch Locally

git checkout -b MyBranch

Show Current Branch

git branch --show-current

Discard Changes

git reset --hard

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.