How to Setup Git Windows - Foren-Ken/tech-journal GitHub Wiki
Setting up GIT Windows
- From the following website, install GIT:
https://git-scm.com/downloads/win
- Use the installer and download all defaults (maybe change from VIM to NANO).
- Once installed, use the GIT BASH to run some commands.
- Select your Github Repository. I'm using https://github.com/Foren-Ken/SYS-320-Automation-Scripting.git.
- Boot up the GIT BASH and copy the directory using the command
git clone [URL OF GIT REPO]
- 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
- Choose the item which should be added. Then use the command
git add firstfile.ps1
. Use the command git add .
to upload all files.
- use the following to set up the identity:
git config --global user.email "[email protected]"
and git config --global user.name "Your Name"
- Now, once everything is added (of which should be added), use the command
git commit -m "[Message explaining the commit]"
- Now for the end, use the command
git push
to push all committed items. This may require verification