Skip to content
Dibyendu Majumdar edited this page Jan 14, 2023 · 15 revisions

Internal Notes

Cloning

git clone --recurse-submodules https://github.com/dibyendumajumdar/Suravi.git

To create submodules

git submodule add -b ravi-distro <url>

Switching branches in a submodule

git config -f .gitmodules submodule.ravi-torch7.branch ravi-distro-aten

Updating submodules

git submodule update --remote

Removing a submodule

1. git submodule deinit -f -- ./submodule    
2. rm -rf .git/modules/submodule
3. git rm -f submodule

Syncing with upstream

  1. Follow instructions in https://help.github.com/en/articles/configuring-a-remote-for-a-fork
  2. Then https://help.github.com/en/articles/syncing-a-fork
  3. Following that switch to ravi-distro.
  4. Do git rebase master
  5. Check everything and then force push.
  6. This may mess up Suravi links - I think due to rebase. The workaround is to remove and add the module again.
  7. See https://stackoverflow.com/questions/16424555/rebasing-a-submodule for a possible solution.

More on submodules:

I have trouble syncing projects like luv due to submodules. I tried git submodule update when I had merge conflicts. This is probably incorrect as it set the modules back to what they were.

VC Redist

copy 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.26.28720\x64\Microsoft.VC142.CRT\*' C:\Software\ravi\bin\

latest

copy "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.34.31931\x64\Microsoft.VC143.CRT\vcruntime140.dll"
copy "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.34.31931\x64\Microsoft.VC143.CRT\msvcp140.dll"
Clone this wiki locally