E N D
1GIT NOUN \’GIT\ a distributed revision control and source code management (SCM) system with an emphasis on speed. Initially designed and developed by Linus Torvalds for Linux kernel development in 2005. Every Git working directory is a full-fledged repository with complete history and full version tracking capabilities, not dependent on network access or a central server. Git is free software distributed under the terms of the GNU General Public License version 2.
Basic commands Clone Pull (or fetch & merge) Add Commit Push
CONFIGURE gitconfig--global user.name “YOUR NAME” gitconfig --global user.email“YOUR EMAIL”
CLONE Creates a local “clone” of the repository Must be done before pull git clone https://github.com/tcnj-wics/test.git[add name here to name it locally] Change into the newly created directory for the local repo (cd [directory name])
ADD This will ensure that the file is added to the local version you will commit in the future Open a text editor Save a text file with a unique name (make sure it saves to the directory for your local repo) git add [file name.txt]
Commit Commits your file(s) or change(s) to the version in your local repo git commit –m “insert message”
PUSH “Push” the version in your local repo to the remote repository git push pull Once you have a clone or local repo, you can “pull” the latest version from the remote repo git pull