N
N
ngapp2022-01-04 17:00:27
git
ngapp, 2022-01-04 17:00:27

How to reset git push in android studio?

Good afternoon, after each commit and push in Android Studio, the entire list is saved, and after some time it turns out to push only after git push -f.
How can this be fixed? Thanks
61d452f97a41f834797266.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Kuznetsov, 2022-01-04
@hypnogaja

Make meaningful commit messages. These ciphers with dates will only confuse you.
The fact that when you push you see a lot of commits is not a mistake. You don't have to try to fix it.
This is just a sign that your branch is not based on the current master initially and updates were downloaded in the process, or you messed around with push --force which is tantamount to rebuilding the branch again via rebase.
After such a forced push, on other computers, the usual pull is no longer enough. You'll have to pull in --rebase mode, otherwise you'll end up with a mess of commits.
I advise you to use a normal Git client in parallel to work with the repository itself, which clearly shows the commit tree. SmartGit is perfect for this. This will make it much clearer what's going on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question