A practical demonstration of how network engineers can use GitHub for source control Hank Preston shows us how to use Git with a practical demonstration.
Git Learning Lab
http://bit.ly/2uCfyQ8
NetDevOps Live Episode on Git:
http://bit.ly/2UfPokV
Cisco DevNet Python Code Samples Repo (Code Exchange):
http://bit.ly/2TK1iiH
Hank’s Fork of the Cisco DevNet Python Code Samples Repo:
http://bit.ly/2U6uYeW
#git #github #python
Git cheatsheet:
============
git clone
Copies a git repository from a “remote” (aka GitHub) to your
local workstation
git status
Looks at the current status (obviously). Includes new and changed files,
and if you are “ahead” of upstream.
git add file or directory
“adds” changes or new files to “stage” and ready to be committed (aka locked)
git commit -m message
“Locks in” a change to the repository locally.
git push
Sends (aka push) changes from your local workstation to the remote
git pull
Retrieves (aka pull) changes from remote to local.
git diff
Look at changes between current file, and last “committed” version.