Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

git push says everything up-to-date even though I have local changes -git push everything up-to-date

Asked by Andrew Jenkins Jun 16, 2021 2.2K views 1 answer
Share

About this question

I have a remote gitosis server and a local git repository, and each time I make a big change in my code, I'll push the changes to that server too.

But today I find that even though I have some local changes and commit to the local repository when running git push origin master it says 'Everything up-to-date', but when I use git clone to checkout files on the remote server, it doesn't contain latest changes. And I have only one branch named master and one remote server named origin.

This is what git displays when running ls-remote, I'm not sure whether it helps

$ git ls-remote origin

df80d0c64b8e2c160d3d9b106b30aee9540b6ece        HEAD

df80d0c64b8e2c160d3d9b106b30aee9540b6ece        refs/heads/master

$ git ls-remote .

49c2cb46b9e798247898afdb079e76e40c9f77ea        HEAD

df80d0c64b8e2c160d3d9b106b30aee9540b6ece        refs/heads/master

df80d0c64b8e2c160d3d9b106b30aee9540b6ece        refs/remotes/origin/master

3a04c3ea9b81252b0626b760f0a7766b81652c0c        refs/tags/stage3

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.