<aside> 👨🏼💻 Software for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development.
</aside>
Support my work buying me a coffee ☕
Martí Grau is R&D and IA engineer
git branch → To visualize all your local branches
git branch -r → To visualize all remote branches
git checkout -b [branchname] → To create new local branch
git add . → To add all modifyed files from current directory
git add [scriptName.py] → To add only the script to the local branch
git commit -m '[message]' → To commit the added files to the current branch
git push → To push all your commited files to the remote branch
To add a submodule:
git submodule add REPOSITORY_PATH
To delete a submodule
git rm --force <submodule path> rm -rf .git/modules/<submodule path>
⚠️ You will see that the submodule repositories are empty! To recover them you should:
git submodule init to initialize your local configuratio
git submodule update to fetch all the data from that project