Skip to content

Installation Git

Hui Zhou edited this page Jun 12, 2026 · 2 revisions

Git Installation

Git is only required if you want to get PyAEDT/PyEDB development version.

Linux

  1. Compile Git locally
mkdir -p ~/.local/src ~/.local/bin
cd ~/.local/src
curl -LO https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.44.0.tar.gz
tar xzf git-2.44.0.tar.gz
cd git-2.44.0
make configure
./configure --prefix=$HOME/.local
make && make install
  1. Add to PATH
export PATH="$HOME/.local/bin:$PATH"

Windows

  1. Download and install Git from git-scm.com
  2. Follow the installer prompts and accept the default settings
  3. Verify installation by opening Command Prompt and running:
git --version

Basic Git Operations

Clone a repository

git clone https://github.com/ansys/pyedb.git

Check status

git status

Create a new branch

git checkout -b [branch_name]

Switch to an existing branch

git checkout [branch_name]

Stage changes

git add [file_name]

Commit changes

git commit -m "commit message"

Push changes

git push origin [branch_name]

Pull latest changes

git pull origin [branch_name]

Clone this wiki locally