I sometimes forget github commands when I start and manage a new project.. So here I write some basic commands for github project.
When just created a new project:
git init
git branch -M main
git remote add origin https://github.com/HanKyeol0/DSBP.git
Commit something to the remote repository:
git add .
git commit -m "first message"
git push origin main
Remove remote origin:
git remote rm origin
Add another Git repository as a submodule:
git submodule add <repository url> # add the submodule
git submodule update --init --recursive # initialize and pull the submodule
git add .gitmodules path/to/other-repo # commit the submodule reference
git commit -m "Add submodule for other-repo"