Skip to content

mcu-dev/dev-drivers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-drivers

This project includes submodules that are essential for its functionality. Please follow the guide below to clone or pull this repository correctly.

Getting Started

Cloning the Repository with Submodules

When cloning a repository that contains submodules, you must ensure that both the main repository and its submodules are initialized and updated.

1. Clone the Repository

To clone the repository and automatically initialize and update its submodules, use the --recurse-submodules flag:

git clone --recurse-submodules https://github.com/username/project.git

2. Navigate to the Project Directory

After cloning, navigate into the project directory:

cd project

3. Initialize and Update Submodules (If Skipped During Clone)

If you have cloned the repository without the --recurse-submodules flag, you can manually initialize and update the submodules using the following commands:

git submodule init
git submodule update

Or you can do both steps in one command:

git submodule update --init --recursive

Pulling Updates with Submodules

When pulling updates from a repository with submodules, you need to ensure the submodules are also updated.

1. Pull the Latest Changes

First, pull the latest changes from the main repository:

git pull

2. Update Submodules

After pulling, update the submodules to ensure they are synced with the main repository:

git submodule update --recursive

Alternatively, you can use this command to pull and update submodules in one step:

git pull --recurse-submodules

Common Commands

  • Add a new submodule:

    git submodule add <repository-url> <path-to-submodule>
  • Remove a submodule:

    1. Remove the submodule from the .gitmodules file:
      git rm --cached <path-to-submodule>
    2. Commit the changes and delete the submodule folder:
      rm -rf <path-to-submodule>

More Information

For more details on working with submodules, refer to the official Git documentation on submodules.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published