I
I
Ilia Malashko2020-04-02 09:32:30
linux
Ilia Malashko, 2020-04-02 09:32:30

Why are commits not saved in git?

Hello.

I use gitlab.com for version control.
git version 2.1.4

I can't make changes to the project.
'git status' shows correctly modified files since the last commit. That is, there is a connection with the project, version control works.
But after creating a new commit, it is not written to the master gitlab branch, there is no other branch.
$ git reflogdisplays all the commits made earlier, but they are not on gitlab.com.
5e8586890f6ba296087407.png
5e85869ac36d0904614942.png

There are no errors when starting the commit.

Help me figure out what the problem is.

The sequence of my actions: I check the changes - I commit the changes - I upload them to
gitlab - (wisell is the name of the project)git status
git commit -am "Updata #1"
git push wisell master

I always made fixes in this way, now I can’t understand what my actions caused this problem.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Pankov, 2020-04-02
@trapwalker

And from the whole description it is not clear whether you are pushing or not.
Make the changes and show command by command (along with their output) how you push the changes to the server.

A
Andrey Gavrilov, 2020-04-03
@thexaver

Git push origin master

T
toxa82, 2020-04-02
@toxa82

reflog shows where HEAD was. To see the commit history you need to use log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question