Git Setup
To set up Git Bash on your laptop, follow these steps:
1. Download Git
• Go to the official Git website: https://git-scm.com/.
• Click on the Download button, and it will automatically detect your operating system (Windows in your
case).
2. Install Git
• Run the downloaded installer (.exe file).
• Follow the installation wizard:
- Select Components: Ensure "Git Bash Here" is selected for context menu integration.
- Default Editor: Choose your preferred text editor (e.g., VS Code).
- Adjust PATH Environment: Select "Git from the command line and also from 3rd-party software"
(recommended).
- HTTPS Transport Backend: Use the default option (OpenSSL).
- Line Ending Conversions: Choose "Checkout Windows-style, commit Unix-style line endings"
(recommended).
- Terminal Emulator: Select "Use MinTTY (the default terminal for Git Bash)".
• Complete the installation.
3. Launch Git Bash
• After installation, search for Git Bash in the Start menu and open it.
4. Verify Installation
• In Git Bash, type the following command to verify the installation:
git --version
• It should display the installed Git version.
5. Optional: Configure Git
Set up your username and email for Git:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Example:
git config --global user.name "Your Name"
git config --global user.email "name@mail.com"
Git Commands
Git Init
git init
Git Clone
git clone https://github.com/repo.git
cd unified-pipeline-tests
Git Checkout
git checkout -b branchName
Git Commit
git status
git add .
git commit -m "message-"
git pull origin branch name
git push origin branch name