Safe way to commit ModusToolbox changes to LOCAL repository.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Hi,

I use Git Extensions and I'm a immediate user of Git.  All MTB projects appear to automatically create a git repository.

I downloaded the "Empty PSoC6" project from git hub and modified it to my heart's content.

I want to commit my changes WITHOUT dumping it back to the git hub location it originally came from.

What is the proper way?

Note:  I'd prefer Git Extensions instructions since git.exe is so verbose and confusing.

I'm familiar with Git Extensions for committing changes to local repositories.  I do that all the time.

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
1 Solution
AlanH_86
Employee
Employee
100 replies posted 50 replies posted 25 solutions authored

The local copy is just a local copy of the repository.  You can commit/branch/ etc to your hearts content... and you will safely have a local copy.  There is nothing that our system will do to blow away your local copy.

If you try to "git push" you will get rejected as you dont have permission to push into the Cypress GitHub site.

You can always add a new remote with "git remote add ...."

I guess what I am saying is that there is no special sauce here.  If you run "git remote -v" you will see something like this:

origin https://github.com/cypresssemiconductorco/mtb-example-psoc6-empty-app (fetch)

origin https://github.com/cypresssemiconductorco/mtb-example-psoc6-empty-app (push)

Which says this branch came from origin.

Hope that helps.

Alan

View solution in original post

1 Reply
AlanH_86
Employee
Employee
100 replies posted 50 replies posted 25 solutions authored

The local copy is just a local copy of the repository.  You can commit/branch/ etc to your hearts content... and you will safely have a local copy.  There is nothing that our system will do to blow away your local copy.

If you try to "git push" you will get rejected as you dont have permission to push into the Cypress GitHub site.

You can always add a new remote with "git remote add ...."

I guess what I am saying is that there is no special sauce here.  If you run "git remote -v" you will see something like this:

origin https://github.com/cypresssemiconductorco/mtb-example-psoc6-empty-app (fetch)

origin https://github.com/cypresssemiconductorco/mtb-example-psoc6-empty-app (push)

Which says this branch came from origin.

Hope that helps.

Alan