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

Git Quick Reference

RSS
Modified on Thu, May 19, 2022, 12:55 PM by Administrator Categorized as (Favorites), Visual Studio and Developer Tools

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

Create Local Branch, And Pull Code from Remote

git checkout 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.