Your first commitFirst create a test repository at GitLab.
Clone that repository:
Now create a README.md or make changes to it:
git clone email@example.com:$username/test-repository.git
Stage this file:
cd test-repository echo "# Headline 1" > README.md
Your editor will be started. For now just add:
git add README.md
Save the file, exit your editor and the file will be committed.
You will get an output similar to this:
Take a look at the first line. There you will find your "revision". In this case it's 0ca4277 and it's already the short form. Just remember it for now.
[master (root-commit) 0ca4277] added README.md 1 file changed, 1 insertion(+) create mode 100644 README.md
You may want to push your changes now:
If everything went fine, your changes will be visible inside the repository.
git push -u origin master