Juggling different MySensor versions?
-
Can somebody gives a way to make a diff between my local version and the online repository.
When I use git diff (or git status), it only gives differences between local files and local repository (stuck at the version/date when I cloned it).
My purpose is to compare my version vs online development branch. -
@fets git fetch --all will update your local repository with the changes on github.
You can then usegit diff origin/master localbranchor similar to compare.
@mfalkvidd thanks. But is fetch only update local repository and not local files ? I wasn't sure
-
@mfalkvidd thanks. But is fetch only update local repository and not local files ? I wasn't sure
-
@fets not sure what you mean. The files are stored in the reprository (unless you have local changes that have not been committed).
@mfalkvidd I use development version which is still evolving on github. BEFORE upgrading my local files, I would like to know the differences between my local version and the remote repo.
-
@mfalkvidd I use development version which is still evolving on github. BEFORE upgrading my local files, I would like to know the differences between my local version and the remote repo.
@fets this should be sufficient:
git fetch --all # downloads all updates from github to the local git repository but does not update the current branch git diff origin/development # shows difference between current branch/ref and development on github -
@fets this should be sufficient:
git fetch --all # downloads all updates from github to the local git repository but does not update the current branch git diff origin/development # shows difference between current branch/ref and development on github@mfalkvidd thanks.
I'll try next time i'll get repo files -
@fets this should be sufficient:
git fetch --all # downloads all updates from github to the local git repository but does not update the current branch git diff origin/development # shows difference between current branch/ref and development on github@mfalkvidd I'm really spoiled by my employee. I use different images for different versions. 1.5 though is the one I currently use on OsX - thus no virtual image.
-
I'm using Windows
I have two Arduino installations.
One folder called 'Arduino-old' - with MySensors 1.5.4
Another folder called Arduino - with MySensors 2.0If I need to work on an older version, I rename 'Arduino' to 'Arduino-new' and 'Arduino-old' to 'Arduino'
I have the same version of Arduino installed in both folders 1.6.9
Works fine for me
-
I'm using Windows
I have two Arduino installations.
One folder called 'Arduino-old' - with MySensors 1.5.4
Another folder called Arduino - with MySensors 2.0If I need to work on an older version, I rename 'Arduino' to 'Arduino-new' and 'Arduino-old' to 'Arduino'
I have the same version of Arduino installed in both folders 1.6.9
Works fine for me
Hi all,
I'm struggling somewhat with the different MySensor versions as well on Windows machines (windows XP, windows 7 and windows 10).
I'm using sync (sync.com) to keep all versions of sketches (and libraries) on 3 computers in synchronised. Works perfect for me.I write my sketches using the notebook -while sitting in the livingroom with my family- and do the real debugging and testing and deploying at 2 different locations (in the attick and in my shed). In the preferences.txt (Arduino IDE... C:\Users\xxxxxx\AppData\Local\Arduino15\preferences.txt) I've declared the sketschbook location as being the 'sync' location. This is on all 3 computers the same.
Here the trouble begins for 2 different MySensor versions: the libraries are in this 'sync' location as well. Even if multiple Arduino IDE's are installed, the preferences.txt remains the same one, always pointing at the same sync location....and thus the same libraries....
My goal is to have 2 different configurations to switch between MySensors 1.5 and 2.0 while keeping the 'sync' option I created before. Has anyone an idea how to accomplish that? Would git be and option (I have zero experience with this) and how should this be implemented in Windows? Or would the method described by @alexsh1 a simple but robust solution. Any help appreciated!
Thanks!
Boozz