palasangha / Treasures-Of-Dhamma

GNU General Public License v3.0
0 stars 0 forks source link

Push code files to Github #27

Closed paladhamma closed 2 years ago

paladhamma commented 2 years ago

Using gitbash(terminal) from local PC/server.

paladhamma commented 2 years ago
  1. git config --global user.name todhamma -> Sets username of github
  2. git config --global user.email tod@vridhamma.org ->Sets user-email
  3. git init -> Initialises git repository
  4. git add . -> Selects that file, and moves it to the staging area, marking it for inclusion in the next commit
  5. git commit -m "message for the commit" -> Captures a snapshot of the project's currently staged changes, adds commit message
  6. git 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
  7. git push origin main or git push -f origin main -> pushes our folder to github repository

Copy 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