-
Navigate to Your Repository: Go to the main page of your repository on GitHub.
-
Click on
Add Fileand selectCreate New FileorUpload Files: You can find theAdd filebutton near the top right of your repository's main page. -
Specify the Folder Name: In the file name field, enter the folder name followed by a forward slash / and then the file name (e.g.,
folder_name/file_name.txt). GitHub will recognize the forward slash as an indication to create a folder. -
Commit New File: Below the file name field, you'll find an option to add a commit message. Type in a meaningful message to describe the changes you're making.
-
Commit Changes: Finally, click on the
Commit new fileorCommit changesbutton at the bottom.
git remote set-url origin https://NazranKhondokar:<token>@github.com/NazranKhondokar/nazrankhondokar.github.io.gitFollow those links for detail:
- https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key
- https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
ssh-keygen -t ed25519 -C "[email protected]"cd ~/.ssheval "$(ssh-agent -s)"ssh-add ~/.ssh/id_ed25519cat ~/.ssh/id_ed25519.pubRun this command to list your GPG keys:
gpg --list-secret-keys --keyid-format=long
Look for the sec line and note the long key ID (e.g., ABCD1234EFGH5678).
git config --global user.signingkey ABCD1234EFGH5678
git config --global commit.gpgsign true
To check if the signing key is set:
git config --global --get user.signingkey