You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Change the values based on your preferences and available names
cat <<EOF >>~/.bashrc && source ~/.bashrcexport GITLAB_INSTANCE=gitlab.comexport GITLAB_GROUP=RestQRexport GITLAB_PROJECT=RestQREOF
# Cd into the RestQR foldercd$HOME/RestQR
# Create a new GitLab repository
glab repo create \
--name $GITLAB_PROJECT \
--group $GITLAB_GROUP \
--description "RestQR application" \
--private
# Sign all commits by default in all repositories
git config --global user.signingkey $KEY_ID
git config --global commit.gpgsign true
# Create a new file and add some contentecho$(date)> test.txt
# Add the file to the staging area
git add test.txt
# If you've already configured git to always sign commits with:# git config --global commit.gpgsign true# git config --global user.signingkey <KEY_ID># Then you can omit the `-S` option:
git commit -m "Test commit" -S
# Verify the commit signature
git log --show-signature
# Push the commit to the remote repository
git push origin main
Passwordless Authentication
git remote -v
# Already done by the glab command
git remote set-url \
origin git@$GITLAB_INSTANCE:$GITLAB_GROUP/$GITLAB_PROJECT.git