Skip to content

Baishenliang/test_gitworktree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

test_gitworktree


Worktree Demo with Git and Python
This document outlines how to set up a Git repository with worktree and manage Python files across branches.


  1. Create a blank folder and clone the repository:
    git clone https://github.com/Baishenliang/test_gitworktree.git cd main

  1. Add a Worktree for the global Branch
    2.1. Use git worktree to create a worktree for the global branch in a separate directory:
    git worktree add ../worktree-global global 2.2. Verify the worktree setup:
    git worktree list

  1. Test the Setup
    3.1 Install the conda environment using environment.yml in the main branch 3.2: Run the Python Script. In the main branch directory, run the script:
    python test.py

From Baishen Liang baishen.liang@duke.edu liangbs95@gmail.com

About

Test git worktree function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages