Push git "Everything up-to-date " Data is not actually sent

Asked

Viewed 3,518 times

9

I’m pushing to a repository in gitlab.com. I get the feedback:

Warning: redirecting to https://gitlab.com/fellipesillvaoff/Dados_Agronomia.git/ Everything up-to-date

In my mind, it worked. In practice the changes are not sent. I saw other similar questions, and tried to follow the steps through git but do not know technical terms hope to find something for layman.

  • 1

    Did you commit to your changes? If your local HEAD is equal to the remote, it looks like this error/warning will appear even.

  • how do I type this in git? I changed commit in r several times without success.

  • 1

    If you made any changes, do a git status to know what they were, and giving git add <FILE_NAME> in the files that were changed or adapted. After the git commit -m "Descrição das alterações" to send to your local HEAD and then just give one git push origin master to upload the changes to your remote repository.

  • whereas you have created a new branch, it is necessary to run git push -u origin <NOMEDABRANCH>, so everyone in the tb project will have access to your branch.

1 answer

2


Make sure you are doing all the necessary steps

I see you already have the repository properly configured, so if you have created new files, run a git add

git add .

to add all files from the directory

or

git add <nome do arquivo>

to add a specific file. Then give a commit

git commit -m 'algum comentario sobre o commit'

And only after that do you perform the push

git push origin master

or the specific branch you want to send to

git push origin <nome-do-branch>

In any case, always worth a read on simplified git manual :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.