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
NetDevOps Live Episode on Git:
Cisco DevNet Python Code Samples Repo (Code Exchange):
Hank’s Fork of the Cisco DevNet Python Code Samples Repo:
#git #github #python
Copies a git repository from a “remote” (aka GitHub) to your
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.
Sends (aka push) changes from your local workstation to the remote
Retrieves (aka pull) changes from remote to local.
Look at changes between current file, and last “committed” version.