To get the file to your Linux system, you must maintain a separate repository folder .
From your Windows system, push the project to Git, then clone that same repository onto your Linux machine.
- On your Windows machine:
- Initialize a Git repository in your project directory (
git init
).
- Add your files to the repository and make an initial commit.
- Create a repository on a remote Git hosting service (e.g., GitHub).
- Add the remote repository as an origin for your local repository (
git remote add origin <url>
).
- Push your changes to the remote repository (
git push -u origin main
).
- On your Linux machine:
- Clone the repository from the remote hosting service to your system (
git clone <url>
).