Closed paladhamma closed 2 years ago
git config --global user.name todhamma
-> Sets username of githubgit config --global user.email tod@vridhamma.org
->Sets user-emailgit init
-> Initialises git repositorygit add .
-> Selects that file, and moves it to the staging area, marking it for inclusion in the next commitgit commit -m "message for the commit"
-> Captures a snapshot of the project's currently staged changes, adds commit messagegit remote add origin https://url-of-github-repo
-> automatically creates a remote connection called origin pointing back to the cloned repository
Note: In our case: git remote add origin https://github.com/todhamma/todhamma.github.io.git
git push origin main or git push -f origin main
-> pushes our folder to github repositoryCopy this code block to push at once in Customisation GitHub.
git config --global user.name todhamma
git config --global user.email tod@vridhamma.org
git init
git add .
git commit -m "1st commit"
git remote add origin https://github.com/todhamma/Archipelago-Customisation-for-TOD.git
git push -f origin main
Using gitbash(terminal) from local PC/server.