Automatic GIT deployment
Git Deployment Guide (Git 2.13.2)
Automatic Git Installation
- Double click "Git Auto Install.bat"
- A checker will run before proceeding with the installation.
- If the installation is already done:
- The batch file will output "Git already installed!"
- Press ENTER to close the Installation Process.
- If the Git is not yet installed:
- The batch file will output "Installation process ongoing..."
- Wait until the batch file automatically closes
- Verify if "INSTALLATION COMPLETE!.txt" already exists inside the Git Deployment folder.
Manual Git Installation
- GNU General Public License - NEXT
- Select Destination Location - C:\Program Files\Git
- Select Components - Check: Windows Explorer Integration, Git Bash Here, Git GUI Here, Git LFS, Associate .git*, Associate .sh
- Select Start Menu Folder - Git
- Adjust your PATH environment - Use Git from the Windows Command Prompt
- Choosing HTTPS transport backend - Use the OpenSSL library
- Configuring the line ending conversions - Checkout Windows-style, commit Unix-style line endings
- Configuring the terminal emulator to use with Git Bash - Use MinTTY
- Conifiguring extra options - Check: Enable file system caching, Enable Git Credential Manager, Enable symbolic links
Git Setting up of Credentials (execute this only once during configuration)
git config --global user.name "nelsoft-client"
git config --global user.email nelsoft.systems@gmail.com
Cloning a repository (open bash in desired directory)
git clone https://github.com/nelsoft/nelsoft_inventory.git
git clone https://github.com/nelsoft/nelsoft_pos.git
git clone https://github.com/nelsoft/nelsoft_autosync.git
git clone https://github.com/nelsoft/RestaurantPOS.git
Setting up a gitignore (include the template along with the other files during setup)
- Go inside cloned repository
- Create a text file with the name gitignore.txt
- Open it in a text editor and add your rules, then save and close
- Hold SHIFT, right click the folder you're in, then select Open command window here
- Then rename the file in the command line with ren gitignore.txt .gitignore
Checking Out a Remote Branch (for clients' specific Git Branches)
git checkout
Failed Git Cloning due to Connectivity Problems
- Highlight the repository folder
- SHIFT+DELETE
- Execute git clone command again
- Repeat until successful
------------------------------UPDATING PHASE------------------------------
Updating Client's version via Git Pull (make sure current branch checked out is correct)
git pull
Google Account for nelsoft-client
nelsoft.systems@gmail.com
nelsoft121586
Github Account
nelsoft-client
nelsoft121586
How to unset GIT users
Purpose: to make sure that the clients can't pull other branches on their server
Proceed only after GIT is installed and the credentials are still saved
- open git bash
- run "git config --global --unset user.email" and "git config --global --unset user.name"
- open cmd
- run "cmdkey /delete:LegacyGeneric:target=git:https://github.com"
- there should be an alert "CMDKEY: Credential deleted successfully."
there is a .bat file attached which still has to be modified to find the git directory which you want to unset.
Attached files: Git Deployment.rar, unset git user.bat