Adding files to Gitlab repository

Hmm, something looks wrong there.
If you open the file .git/config, it should show what your origin URL is.
For example:

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin"]
	url = git@gitlab.com:user/repository.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

Do you have a remote called “origin”? And is the URL set to Gitlab?

If not, that’s why it’s not updating on Gitlab. You may be pushing it to another folder or a local URL instead of Gitlab.com

Another possibility is that it’s listed as “remote gitlab” (or some other name). In that case, you can just run:

git push -u gitlab master

(Replace ‘gitlab’ with whatever the remote is called)