I created also a git account.
there are many domains that you could create an account for git:// access ( git over http / https is also an option afaik)
with (afaik) hub lab and bucket being the most popular(ised)
ftr : hear
https://en.wikipedia.org/wiki/Comparison_of_source-code-hosting_facilities is a list .
to contribute to *some project* hosted on Xhub an account at Xhub could be useful
once you have an account
you can fork the project
git clone a local copy of (your fork of)*some project*
project_url=https://Xhub.com/*Xhub-user-name*/*some project fork url*
# when you don't need the full project history use the
# --depth 1 argument
# to
# shallow clone - faster cloning that pulls only latest snapshot
$ git clone --depth 1 "$project_url" ;
this should/will be pre-configured with the Xhub / $user / $project URL as the "git remote" (used for git push / pull )
# https://stackoverflow.com/questions/10183724/list-of-remotes-for-a-git-repository
#list of any configured remote URLs
git remote -v
to let (any) git (client) authenticate (as your user account)
its usually possible to create an access token for a user (or project , if implemented by what ever git repo/host )
a token is like a temporary revocable password , user / token
once you have a token granting access to the remote
pick a method to give the git client access to your token
one way to let programs access relevant auth info is the ".netrc" file
an example .netrc
@
https://gist.github.com/technoweenie/1072829?permalink_comment_id=1503529machine github.com
login technoweenie
password SECRET
machine api.github.com
login technoweenie
password SECRET
many other methods are available :
https://coolaj86.com/articles/vanilla-devops-git-credentials-cheatsheet/im shore i have fudged / omitted some subtle but important detail(s) ...
perhaps the above has enough gist to spare the op/others afew pages of scrolling