Skip to content

Git Cheat Sheet

Jayshua edited this page Feb 23, 2018 · 7 revisions

Super short overview on the important Git commands

csmain repo setup

So there's a problem with lfs right now :( In the meantime, use the repository on csmain. The repo on csmain does not have LFS, so be sure to check the Checkout.txt file in \18-Nautilus\Checkout.txt

  1. Map a network drive to \\csmain\Classes\SE_Project\Development\18-Nautilus (goto "This PC" and click "Map Network Drive" in the ribbon.)
  2. run git clone Z:\no-horizon

Clone the Repo

git lfs clone https://github.com/Jayshua/nautilus

Lock a file (Prefabs, Scenes, Images, Audio, and Models)

git lfs lock <file>

Unlock a file

git lfs unlock <file>

Move changed files into the staging area

git add *

Commit

git commit

Push changes to GitHub

git push

Setup the proxy configuration

git config --global http.proxy http://<id>:<pass>@wsa-sn.pcci.edu:3128
git config --global https.proxy https://<id>:<pass>@wsa-sn.pcci.edu:3128

Standard first-use flow:

git config --global http.proxy http://<id>:<pass>@wsa-sn.pcci.edu:3128
git config --global https.proxy https://<id>:<pass>@wsa-sn.pcci.edu:3128
git lfs clone https://github.com/jayshua/nautilus

If the proxy is giving you issues, try this

git config --global http.sslVerify false
git config --global https.sslVerify false