How to Setup Git Windows - Foren-Ken/tech-journal GitHub Wiki

Setting up GIT Windows

  1. From the following website, install GIT:
    https://git-scm.com/downloads/win
  2. Use the installer and download all defaults (maybe change from VIM to NANO).
  3. Once installed, use the GIT BASH to run some commands.
  4. Select your Github Repository. I'm using https://github.com/Foren-Ken/SYS-320-Automation-Scripting.git.
  5. Boot up the GIT BASH and copy the directory using the command git clone [URL OF GIT REPO]
  6. Sign into github using browser. Now the repository should exist on the local device. It can be accessed by doing the following cd [NAME OF THE REPO]

Posting Changes to Github Repository

  1. Choose the item which should be added. Then use the command git add firstfile.ps1. Use the command git add . to upload all files.
  2. use the following to set up the identity: git config --global user.email "[email protected]" and git config --global user.name "Your Name"
  3. Now, once everything is added (of which should be added), use the command git commit -m "[Message explaining the commit]"
  4. Now for the end, use the command git push to push all committed items. This may require verification